summaryrefslogtreecommitdiffstats
path: root/net/rfkill/rfkill-input.c
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2008-10-22 18:52:55 +0200
committerJohn W. Linville <linville@tuxdriver.com>2008-10-27 22:46:11 +0100
commitd8b105f900d93bd103c002bf4c923f50f16c5441 (patch)
tree5b7b45e6b00a62b73628045c8120c0b92367b89e /net/rfkill/rfkill-input.c
parentp54: fix misbehavings when firmware can't be found (diff)
downloadlinux-d8b105f900d93bd103c002bf4c923f50f16c5441.tar.xz
linux-d8b105f900d93bd103c002bf4c923f50f16c5441.zip
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 <dbaryshkov@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/rfkill/rfkill-input.c')
-rw-r--r--net/rfkill/rfkill-input.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/rfkill/rfkill-input.c b/net/rfkill/rfkill-input.c
index 21124ec0a73d..bfdade72e066 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);
}