]> git.hungrycats.org Git - linux/commitdiff
Use time_after() where applicable.
authorVojtech Pavlik <vojtech@twilight.ucw.cz>
Wed, 3 Jul 2002 18:32:10 +0000 (20:32 +0200)
committerVojtech Pavlik <vojtech@twilight.ucw.cz>
Wed, 3 Jul 2002 18:32:10 +0000 (20:32 +0200)
drivers/input/mouse/sermouse.c

index 0b084b426902bba8ea103ddbc386146e275cb33d..8e40d2dde0a84286ba28ab394901a2b91c8ec869 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: sermouse.c,v 1.15 2001/10/09 22:34:17 jsimmons Exp $
+ * $Id: sermouse.c,v 1.17 2002/03/13 10:03:43 vojtech Exp $
  *
  *  Copyright (c) 1999-2001 Vojtech Pavlik
  */
@@ -200,7 +200,7 @@ static void sermouse_interrupt(struct serio *serio, unsigned char data, unsigned
 {
        struct sermouse *sermouse = serio->private;
 
-       if (jiffies - sermouse->last > 2) sermouse->count = 0;
+       if (time_after(jiffies, sermouse->last + HZ/20)) sermouse->count = 0;
        sermouse->last = jiffies;
 
        if (sermouse->type > SERIO_SUN)