[PATCH] ppc32: backport Book-E decrementer handling fix from 2.6
Linux Kernel Mailing List <[email protected]> Fri, 29 Apr 2005 13:57:21 +0000
| Newsgroups | gmane.linux.kernel.commits.2-4 |
|---|---|
| Message-ID | <[email protected]> |
ChangeSet 1.1507, 2005/04/29 10:57:21-03:00, [email protected] [PATCH] ppc32: backport Book-E decrementer handling fix from 2.6 Marcelo, this is backport of Matt Porter's patch for Book-E decrementer handling in timer_interrupt. The fix has been in 2.6 from August but never made it to 2.4, and I re-discovered this fix last week :) Original Matt's post to linuxppc-dev with explanation can be found at: http://ozlabs.org/pipermail/linuxppc-dev/2004-August/017458.html Signed-off-by: Eugene Surovegin <[email protected]> ===== arch/ppc/kernel/time.c 1.16 vs edited ===== time.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/arch/ppc/kernel/time.c b/arch/ppc/kernel/time.c --- a/arch/ppc/kernel/time.c 2005-04-30 12:16:47 -07:00 +++ b/arch/ppc/kernel/time.c 2005-04-30 12:16:47 -07:00 @@ -150,7 +150,7 @@ hardirq_enter(cpu); - while ((next_dec = tb_ticks_per_jiffy - tb_delta(&jiffy_stamp)) < 0) { + while ((next_dec = tb_ticks_per_jiffy - tb_delta(&jiffy_stamp)) <= 0) { jiffy_stamp += tb_ticks_per_jiffy; if (!user_mode(regs)) ppc_do_profile(instruction_pointer(regs));