diff options
author | S.Caglar Onur <caglar@pardus.org.tr> | 2008-03-28 17:27:05 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-04-09 13:38:30 -0400 |
commit | 5cf1f7cef1c67b5c81736f00e81a2890e07041b9 (patch) | |
tree | 8c983819659598ad4330b1330be51033777449f7 /arch/ia64/kernel/mca.c | |
parent | 734bc367b4830a4c80502a3f9ded7428b1c652e3 (diff) |
[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/mca.c')
-rw-r--r-- | arch/ia64/kernel/mca.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c index 338dbb8c2cfc..1ae512910870 100644 --- a/arch/ia64/kernel/mca.c +++ b/arch/ia64/kernel/mca.c | |||
@@ -69,6 +69,7 @@ | |||
69 | * 2007-04-27 Russ Anderson <rja@sgi.com> | 69 | * 2007-04-27 Russ Anderson <rja@sgi.com> |
70 | * Support multiple cpus going through OS_MCA in the same event. | 70 | * Support multiple cpus going through OS_MCA in the same event. |
71 | */ | 71 | */ |
72 | #include <linux/jiffies.h> | ||
72 | #include <linux/types.h> | 73 | #include <linux/types.h> |
73 | #include <linux/init.h> | 74 | #include <linux/init.h> |
74 | #include <linux/sched.h> | 75 | #include <linux/sched.h> |
@@ -293,7 +294,8 @@ static void ia64_mlogbuf_dump_from_init(void) | |||
293 | if (mlogbuf_finished) | 294 | if (mlogbuf_finished) |
294 | return; | 295 | return; |
295 | 296 | ||
296 | if (mlogbuf_timestamp && (mlogbuf_timestamp + 30*HZ > jiffies)) { | 297 | if (mlogbuf_timestamp && |
298 | time_before(jiffies, mlogbuf_timestamp + 30 * HZ)) { | ||
297 | printk(KERN_ERR "INIT: mlogbuf_dump is interrupted by INIT " | 299 | printk(KERN_ERR "INIT: mlogbuf_dump is interrupted by INIT " |
298 | " and the system seems to be messed up.\n"); | 300 | " and the system seems to be messed up.\n"); |
299 | ia64_mlogbuf_finish(0); | 301 | ia64_mlogbuf_finish(0); |