From: Vojtech P. <vo...@us...> - 2002-03-13 10:09:22
|
Update of /cvsroot/linuxconsole/ruby/linux/drivers/input In directory usw-pr-cvs1:/tmp/cvs-serv31313 Modified Files: keybdev.c Log Message: Use time_after() Index: keybdev.c =================================================================== RCS file: /cvsroot/linuxconsole/ruby/linux/drivers/input/keybdev.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- keybdev.c 24 Jan 2002 19:54:08 -0000 1.18 +++ keybdev.c 13 Mar 2002 10:09:20 -0000 1.19 @@ -180,7 +180,7 @@ static unsigned long last_jiffie; static char led; /* Roughly 1/2s frequency. KDB uses about 1s. Make sure it is different. */ - if (jiffies - last_jiffie > HZ/2) { + if (time_after(jiffies, last_jiffie + HZ/2)) { led ^= 0x01 | 0x04; keybdev_ledfunc(led); last_jiffie = jiffies; |