Commit:     188fd89d539d899bfca2bc83534e5508e0161139
Parent:     9a4c8546f3e7c893888bccc2b3416d6214f2664a
Author:     S.Caglar Onur <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 14 17:36:51 2008 +0200
Committer:  Thomas Gleixner <[EMAIL PROTECTED]>
CommitDate: Tue Feb 19 10:43:58 2008 +0100

    genirq: spurious.c: use time_* macros
    The functions time_before, time_before_eq, time_after, and
    time_after_eq are more robust for comparing jiffies against other
    So following patch implements usage of the time_after() macro, defined
    at linux/jiffies.h, which deals with wrapping correctly
    Signed-off-by: S.Caglar Onur <[EMAIL PROTECTED]>
    Acked-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
 kernel/irq/spurious.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c
index a6b2bc8..088dabb 100644
--- a/kernel/irq/spurious.c
+++ b/kernel/irq/spurious.c
@@ -6,6 +6,7 @@
  * This file contains spurious interrupt handling.
+#include <linux/jiffies.h>
 #include <linux/irq.h>
 #include <linux/module.h>
 #include <linux/kallsyms.h>
@@ -179,7 +180,7 @@ void note_interrupt(unsigned int irq, struct irq_desc *desc,
                 * otherwise the couter becomes a doomsday timer for otherwise
                 * working systems
-               if (jiffies - desc->last_unhandled > HZ/10)
+               if (time_after(jiffies, desc->last_unhandled + HZ/10))
                        desc->irqs_unhandled = 1;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to