forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 [[email protected]: coding-style fixes] Signed-off-by: S.Caglar Onur <[email protected]> Reviewed-by: KOSAKI Motohiro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Tony Luck <[email protected]>
- Loading branch information
1 parent
734bc36
commit 5cf1f7c
Showing
3 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,7 @@ | |
* 2007-04-27 Russ Anderson <[email protected]> | ||
* Support multiple cpus going through OS_MCA in the same event. | ||
*/ | ||
#include <linux/jiffies.h> | ||
#include <linux/types.h> | ||
#include <linux/init.h> | ||
#include <linux/sched.h> | ||
|
@@ -293,7 +294,8 @@ static void ia64_mlogbuf_dump_from_init(void) | |
if (mlogbuf_finished) | ||
return; | ||
|
||
if (mlogbuf_timestamp && (mlogbuf_timestamp + 30*HZ > jiffies)) { | ||
if (mlogbuf_timestamp && | ||
time_before(jiffies, mlogbuf_timestamp + 30 * HZ)) { | ||
printk(KERN_ERR "INIT: mlogbuf_dump is interrupted by INIT " | ||
" and the system seems to be messed up.\n"); | ||
ia64_mlogbuf_finish(0); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters