Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8b105f9 authored by Dmitry Eremin-Solenikov's avatar Dmitry Eremin-Solenikov Committed by John W. Linville
Browse files

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: default avatarDmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 35961627
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);
}