Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80119
b: refs/heads/master
c: 1d16b53
h: refs/heads/master
i:
  80117: b105102
  80115: 5401bb7
  80111: 30909e3
v: v3
  • Loading branch information
Julia Lawall authored and Ingo Molnar committed Jan 30, 2008
1 parent 7af0298 commit d2b9067
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f2479f03c06e29d7d9e1e02191f8b5ba8ad4eef
refs/heads/master: 1d16b53e387b255d8e30f00594220b23b1290e6b
5 changes: 3 additions & 2 deletions trunk/arch/x86/kernel/io_apic_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <linux/htirq.h>
#include <linux/freezer.h>
#include <linux/kthread.h>
#include <linux/jiffies.h> /* time_after() */

#include <asm/io.h>
#include <asm/smp.h>
Expand Down Expand Up @@ -349,7 +350,7 @@ static void set_ioapic_affinity_irq(unsigned int irq, cpumask_t cpumask)
# include <asm/processor.h> /* kernel_thread() */
# include <linux/kernel_stat.h> /* kstat */
# include <linux/slab.h> /* kmalloc() */
# include <linux/timer.h> /* time_after() */
# include <linux/timer.h>

#define IRQBALANCE_CHECK_ARCH -999
#define MAX_BALANCED_IRQ_INTERVAL (5*HZ)
Expand Down Expand Up @@ -1898,7 +1899,7 @@ static int __init timer_irq_works(void)
* might have cached one ExtINT interrupt. Finally, at
* least one tick may be lost due to delays.
*/
if (jiffies - t1 > 4)
if (time_after(jiffies, t1 + 4))
return 1;

return 0;
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/x86/kernel/io_apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit d2b9067

Please sign in to comment.