mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: joe.korty@ccur.com
Cc: Ingo Molnar <mingo@elte.hu>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] add cpu_relax to hrtimer_cancel
Date: Mon, 03 Apr 2006 23:13:18 +0200	[thread overview]
Message-ID: <1144098798.5344.386.camel@localhost.localdomain> (raw)
In-Reply-To: <20060403180037.GA21038@tsunami.ccur.com>

On Mon, 2006-04-03 at 14:00 -0400, Joe Korty wrote:
> Add a cpu_relax() to the hand-coded spinwait in hrtimer_cancel().
> 
> Signed-off-by: Joe Korty <joe.korty@ccur.com>
> 
> 
>  2.6.17-rc1-jak/kernel/hrtimer.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff -puNa kernel/hrtimer.c~add.cpu_relax.to.hrtimer_cancel kernel/hrtimer.c
> --- 2.6.17-rc1/kernel/hrtimer.c~add.cpu_relax.to.hrtimer_cancel	2006-04-03 13:40:05.000000000 -0400
> +++ 2.6.17-rc1-jak/kernel/hrtimer.c	2006-04-03 13:41:06.000000000 -0400
> @@ -501,6 +501,7 @@ int hrtimer_cancel(struct hrtimer *timer
>  
>  		if (ret >= 0)
>  			return ret;
> +		cpu_relax();
>  	}
>  }
>  
> 
> _

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Doh. It had been there once ..:)



      reply	other threads:[~2006-04-03 21:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-03 18:00 Joe Korty
2006-04-03 21:13 ` Thomas Gleixner [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=1144098798.5344.386.camel@localhost.localdomain \
    --to=tglx@linutronix.de \
    --cc=joe.korty@ccur.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®