aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-08-17 17:41:41 -0400
committerMarcel Holtmann <marcel@holtmann.org>2014-09-08 13:07:53 -0400
commiteb78d7e53d144995b9e023b151de19fa40af72f3 (patch)
treee44857e3a83e16734c1677095806f680aac5e34e /include/net/bluetooth
parentf6c63249698aaa87399e795adcf3b70171384dc2 (diff)
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 <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/hci_core.h4
1 files changed, 2 insertions, 2 deletions
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)
791 if (!conn->out) 791 if (!conn->out)
792 timeo *= 2; 792 timeo *= 2;
793 } else { 793 } else {
794 timeo = msecs_to_jiffies(10); 794 timeo = 0;
795 } 795 }
796 break; 796 break;
797 797
@@ -800,7 +800,7 @@ static inline void hci_conn_drop(struct hci_conn *conn)
800 break; 800 break;
801 801
802 default: 802 default:
803 timeo = msecs_to_jiffies(10); 803 timeo = 0;
804 break; 804 break;
805 } 805 }
806 806