From: Johan Hedberg Date: Sun, 17 Aug 2014 21:41:41 +0000 (+0300) Subject: Bluetooth: Use zero timeout for immediate scheduling X-Git-Tag: v3.18-rc1~115^2~144^2~141 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eb78d7e53d144995b9e023b151de19fa40af72f3;p=karo-tx-linux.git Bluetooth: Use zero timeout for immediate scheduling There's no point in passing a "small" timeout to queue_delayed_work() to try to get the callback faster scheduled. Passing 0 is perfectly valid and will cause a shortcut to a direct queue_work(). Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index aa75eee8ad7f..18c24f6fce6c 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -791,7 +791,7 @@ static inline void hci_conn_drop(struct hci_conn *conn) if (!conn->out) timeo *= 2; } else { - timeo = msecs_to_jiffies(10); + timeo = 0; } break; @@ -800,7 +800,7 @@ static inline void hci_conn_drop(struct hci_conn *conn) break; default: - timeo = msecs_to_jiffies(10); + timeo = 0; break; }