arch/x86/kernel/io_apic_{64,32}.c: use time_before
[deliverable/linux.git] / arch / x86 / kernel / io_apic_64.c
index f914d84a21da1aaf6e6c4820cd2bdd7248d0b6f7..1627c0d53e0b4f63b927184d40e56145d0012e38 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/msi.h>
 #include <linux/htirq.h>
 #include <linux/dmar.h>
+#include <linux/jiffies.h>
 #ifdef CONFIG_ACPI
 #include <acpi/acpi_bus.h>
 #endif
@@ -1299,7 +1300,7 @@ static int __init timer_irq_works(void)
         */
 
        /* jiffies wrap? */
-       if (jiffies - t1 > 4)
+       if (time_after(jiffies, t1 + 4))
                return 1;
        return 0;
 }
This page took 0.028225 seconds and 5 git commands to generate.