projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6c6324
)
Bluetooth: Use zero timeout for immediate scheduling
author
Johan Hedberg
<
[email protected]
>
Sun, 17 Aug 2014 21:41:41 +0000
(
00:41
+0300)
committer
Marcel Holtmann
<
[email protected]
>
Mon, 8 Sep 2014 17:07:53 +0000
(19:07 +0200)
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 <
[email protected]
>
Signed-off-by: Marcel Holtmann <
[email protected]
>
include/net/bluetooth/hci_core.h
patch
|
blob
|
history
diff --git
a/include/net/bluetooth/hci_core.h
b/include/net/bluetooth/hci_core.h
index aa75eee8ad7fbe26f1b79a1a80de73e9b0e69553..18c24f6fce6c07598c2e77a60a3fef760d45e25f 100644
(file)
--- 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;
}