Skip to content

Commit

Permalink
RFKILL: fix input layer initialisation
Browse files Browse the repository at this point in the history
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: Dmitry Baryshkov <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
lumag authored and linvjw committed Oct 27, 2008
1 parent 3596162 commit d8b105f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions net/rfkill/rfkill-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d8b105f

Please sign in to comment.