projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7f268d
)
drivers/staging/speakup/main: fixed jiffie comparison
author
Robin Schroer
<
[email protected]
>
Thu, 12 Jun 2014 23:17:30 +0000
(
01:17
+0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 20 Jun 2014 00:12:01 +0000
(17:12 -0700)
speakup_key() used manual comparison of jiffies to determine the time
since the last keypress, replaced it with time_after()
Signed-off-by: Robin Schroer <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/speakup/main.c
patch
|
blob
|
history
diff --git
a/drivers/staging/speakup/main.c
b/drivers/staging/speakup/main.c
index 7de79d59a4cdc0efa4882838a51bbbb7535f9726..0cd3cdba86441d2024250c1d506082b5961d2b4b 100644
(file)
--- a/
drivers/staging/speakup/main.c
+++ b/
drivers/staging/speakup/main.c
@@
-2067,7
+2067,7
@@
speakup_key(struct vc_data *vc, int shift_state, int keycode, u_short keysym,
if (up_flag)
goto out;
if (last_keycode == keycode &&
-
last_spk_jiffy + MAX_DELAY > jiffies
) {
+
time_after(last_spk_jiffy + MAX_DELAY, jiffies)
) {
spk_close_press = 1;
offset = spk_shift_table[shift_info + 32];
/* double press? */