Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89481
b: refs/heads/master
c: 5cf1f7c
h: refs/heads/master
i:
  89479: 8fb4eea
v: v3
  • Loading branch information
S.Caglar Onur authored and Tony Luck committed Apr 9, 2008
1 parent 860cc98 commit 5e46e00
Show file tree
Hide file tree
Showing 4 changed files with 7 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: 734bc367b4830a4c80502a3f9ded7428b1c652e3
refs/heads/master: 5cf1f7cef1c67b5c81736f00e81a2890e07041b9
2 changes: 1 addition & 1 deletion trunk/arch/ia64/kernel/irq_ia64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/ia64/kernel/mca.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
* 2007-04-27 Russ Anderson <rja@sgi.com>
* 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>
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/ia64/kernel/unaligned.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* 2001/08/13 Correct size of extended floats (float_fsz) from 16 to 10 bytes.
* 2001/01/17 Add support emulation of unaligned kernel accesses.
*/
#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/tty.h>
Expand Down Expand Up @@ -1290,7 +1291,7 @@ within_logging_rate_limit (void)
{
static unsigned long count, last_time;

if (jiffies - last_time > 5*HZ)
if (time_after(jiffies, last_time + 5 * HZ))
count = 0;
if (count < 5) {
last_time = jiffies;
Expand Down

0 comments on commit 5e46e00

Please sign in to comment.