提交 eb78d7e5 编写于 作者: J Johan Hedberg 提交者: Marcel Holtmann

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: NJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 f6c63249
...@@ -791,7 +791,7 @@ static inline void hci_conn_drop(struct hci_conn *conn) ...@@ -791,7 +791,7 @@ static inline void hci_conn_drop(struct hci_conn *conn)
if (!conn->out) if (!conn->out)
timeo *= 2; timeo *= 2;
} else { } else {
timeo = msecs_to_jiffies(10); timeo = 0;
} }
break; break;
...@@ -800,7 +800,7 @@ static inline void hci_conn_drop(struct hci_conn *conn) ...@@ -800,7 +800,7 @@ static inline void hci_conn_drop(struct hci_conn *conn)
break; break;
default: default:
timeo = msecs_to_jiffies(10); timeo = 0;
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册