lkml.org 
[lkml]   [2006]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] add cpu_relax to hrtimer_cancel
From
Date
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 ..:)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-03 23:15    [W:0.035 / U:1.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site