diff options
Diffstat (limited to 'drivers/char/keyboard.c')
-rw-r--r-- | drivers/char/keyboard.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c index 59608e341385..45806d27579a 100644 --- a/drivers/char/keyboard.c +++ b/drivers/char/keyboard.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <linux/input.h> | 42 | #include <linux/input.h> |
43 | #include <linux/reboot.h> | 43 | #include <linux/reboot.h> |
44 | #include <linux/notifier.h> | 44 | #include <linux/notifier.h> |
45 | #include <linux/jiffies.h> | ||
45 | 46 | ||
46 | extern void ctrl_alt_del(void); | 47 | extern void ctrl_alt_del(void); |
47 | 48 | ||
@@ -928,7 +929,8 @@ static void k_brl(struct vc_data *vc, unsigned char value, char up_flag) | |||
928 | if (up_flag) { | 929 | if (up_flag) { |
929 | if (brl_timeout) { | 930 | if (brl_timeout) { |
930 | if (!committing || | 931 | if (!committing || |
931 | jiffies - releasestart > (brl_timeout * HZ) / 1000) { | 932 | time_after(jiffies, |
933 | releasestart + msecs_to_jiffies(brl_timeout))) { | ||
932 | committing = pressed; | 934 | committing = pressed; |
933 | releasestart = jiffies; | 935 | releasestart = jiffies; |
934 | } | 936 | } |