提交 d8b105f9 编写于 作者: D Dmitry Baryshkov 提交者: John W. Linville

RFKILL: fix input layer initialisation

Initialise correctly last fields, so tasks can be actually executed.
On some architectures the initial jiffies value is not zero, so later
all rfkill incorrectly decides that rfkill_*.last is in future.
Signed-off-by: NDmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 35961627
......@@ -256,6 +256,11 @@ static struct input_handler rfkill_handler = {
static int __init rfkill_handler_init(void)
{
unsigned long last_run = jiffies - msecs_to_jiffies(500);
rfkill_wlan.last = last_run;
rfkill_bt.last = last_run;
rfkill_uwb.last = last_run;
rfkill_wimax.last = last_run;
return input_register_handler(&rfkill_handler);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册