* [PATCH] ppc32: backport Book-E decrementer handling fix from 2.6
@ 2005-04-26 18:48 Eugene Surovegin
  2005-04-29 13:56 ` Marcelo Tosatti
  0 siblings, 1 reply; 2+ messages in thread
From: Eugene Surovegin @ 2005-04-26 18:48 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Paul Mackerras, linuxppc-embedded
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 <ebs@ebshome.net>
===== arch/ppc/kernel/time.c 1.16 vs edited =====
--- 1.16/arch/ppc/kernel/time.c	2003-07-03 09:56:34 -07:00
+++ edited/arch/ppc/kernel/time.c	2005-04-26 11:37:58 -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));
^ permalink raw reply	[flat|nested] 2+ messages in thread
* Re: [PATCH] ppc32: backport Book-E decrementer handling fix from 2.6
  2005-04-26 18:48 [PATCH] ppc32: backport Book-E decrementer handling fix from 2.6 Eugene Surovegin
@ 2005-04-29 13:56 ` Marcelo Tosatti
  0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2005-04-29 13:56 UTC (permalink / raw)
  To: Matt Porter, Paul Mackerras, Kumar Gala, linuxppc-embedded
On Tue, Apr 26, 2005 at 11:48:28AM -0700, Eugene Surovegin wrote:
> 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
Applied, thanks. 
> Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
> 
> ===== arch/ppc/kernel/time.c 1.16 vs edited =====
> --- 1.16/arch/ppc/kernel/time.c	2003-07-03 09:56:34 -07:00
> +++ edited/arch/ppc/kernel/time.c	2005-04-26 11:37:58 -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));
^ permalink raw reply	[flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-29 18:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-26 18:48 [PATCH] ppc32: backport Book-E decrementer handling fix from 2.6 Eugene Surovegin
2005-04-29 13:56 ` Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).