From: Dmitry Baryshkov Date: Wed, 22 Oct 2008 16:52:55 +0000 (+0400) Subject: RFKILL: fix input layer initialisation X-Git-Tag: v2.6.28-rc3~48^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d8b105f900d93bd103c002bf4c923f50f16c5441;p=linux-2.6-omap-h63xx.git 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: Dmitry Baryshkov Signed-off-by: John W. Linville --- diff --git a/net/rfkill/rfkill-input.c b/net/rfkill/rfkill-input.c index 21124ec0a73..bfdade72e06 100644 --- a/net/rfkill/rfkill-input.c +++ b/net/rfkill/rfkill-input.c @@ -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); }