Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21102
b: refs/heads/master
c: d6bd0e6
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Mar 18, 2006
1 parent 589d79f commit 8afdd49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 966f4406d903a4214fdc74bec54710c6232a95b8
refs/heads/master: d6bd0e6b32ea72be91e5789b1e838c244f8a05d9
6 changes: 4 additions & 2 deletions trunk/arch/mips/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
unsigned long j;
unsigned int count;

write_seqlock(&xtime_lock);

count = mips_hpt_read();
mips_timer_ack();

Expand All @@ -441,7 +443,6 @@ irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
* CMOS clock accordingly every ~11 minutes. rtc_set_time() has to be
* called as close as possible to 500 ms before the new second starts.
*/
write_seqlock(&xtime_lock);
if (ntp_synced() &&
xtime.tv_sec > last_rtc_update + 660 &&
(xtime.tv_nsec / 1000) >= 500000 - ((unsigned) TICK_SIZE) / 2 &&
Expand All @@ -453,7 +454,6 @@ irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
last_rtc_update = xtime.tv_sec - 600;
}
}
write_sequnlock(&xtime_lock);

/*
* If jiffies has overflown in this timer_interrupt, we must
Expand Down Expand Up @@ -496,6 +496,8 @@ irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
}
}

write_sequnlock(&xtime_lock);

/*
* In UP mode, we call local_timer_interrupt() to do profiling
* and process accouting.
Expand Down

0 comments on commit 8afdd49

Please sign in to comment.