summaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/irq_ia64.c
diff options
context:
space:
mode:
authorS.Caglar Onur2008-03-28 22:27:05 +0100
committerTony Luck2008-04-09 19:38:30 +0200
commit5cf1f7cef1c67b5c81736f00e81a2890e07041b9 (patch)
tree8c983819659598ad4330b1330be51033777449f7 /arch/ia64/kernel/irq_ia64.c
parent[IA64] remove redundant display of free swap space in show_mem() (diff)
downloadkernel-qcow2-linux-5cf1f7cef1c67b5c81736f00e81a2890e07041b9.tar.gz
kernel-qcow2-linux-5cf1f7cef1c67b5c81736f00e81a2890e07041b9.tar.xz
kernel-qcow2-linux-5cf1f7cef1c67b5c81736f00e81a2890e07041b9.zip
[IA64] arch/ia64/kernel/: use time_* macros
The functions time_before, time_before_eq, time_after, and time_after_eq are more robust for comparing jiffies against other values. So use the time_after() & time_before() macros, defined at linux/jiffies.h, which deal with wrapping correctly [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: S.Caglar Onur <caglar@pardus.org.tr> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/irq_ia64.c')
-rw-r--r--arch/ia64/kernel/irq_ia64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/kernel/irq_ia64.c b/arch/ia64/kernel/irq_ia64.c
index d8be23fbe6bc..5538471e8d68 100644
--- a/arch/ia64/kernel/irq_ia64.c
+++ b/arch/ia64/kernel/irq_ia64.c
@@ -472,7 +472,7 @@ ia64_handle_irq (ia64_vector vector, struct pt_regs *regs)
static unsigned char count;
static long last_time;
- if (jiffies - last_time > 5*HZ)
+ if (time_after(jiffies, last_time + 5 * HZ))
count = 0;
if (++count < 5) {
last_time = jiffies;