All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: Matt Porter <mporter@kernel.crashing.org>,
	Paul Mackerras <paulus@samba.org>,
	Kumar Gala <kumar.gala@freescale.com>,
	linuxppc-embedded@ozlabs.org
Subject: Re: [PATCH] ppc32: backport Book-E decrementer handling fix from 2.6
Date: Fri, 29 Apr 2005 10:56:48 -0300	[thread overview]
Message-ID: <20050429135648.GA5496@logos.cnet> (raw)
In-Reply-To: <20050426184828.GA22714@gate.ebshome.net>

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));

      reply	other threads:[~2005-04-29 18:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050429135648.GA5496@logos.cnet \
    --to=marcelo.tosatti@cyclades.com \
    --cc=kumar.gala@freescale.com \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=mporter@kernel.crashing.org \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.