add cpu_relax to hrtimer_cancel
PATCH 1/1 add cpu_relax to hrtimer_cancel
Add a cpu_relax() to the hand-coded spinwait in hrtimer_cancel().
Signed-off-by Joe Korty <[email protected]>
2.6.17-rc1-jak/kernel/hrtimer.c | 1 + 1 file changed, 1 insertion(+)
kernel/hrtimer.c renamed from kernel/hrtimer.c~add.cpu_relax.to.hrtimer_cancel +1 -0
@@ -501,6 +501,7 @@ int hrtimer_cancel(struct hrtimer *timerif (ret >=0 )return ret; +cpu_relax (); } }
_
Quoted 20 lines · Joe Korty
Add a
cpu_relax()to the hand-coded spinwait inhrtimer_cancel().Signed-off-by Joe Korty <[email protected]>2.6.17-rc1-jak/kernel/hrtimer.c | 1 + 1 file changed, 1 insertion(+)diff -puNa
kernel/hrtimer.c~add.cpu_relax.to.hrtimer_cancelkernel/hrtimer.ckernel/hrtimer.c renamed from kernel/hrtimer.c~add.cpu_relax.to.hrtimer_cancel +1
-0@@ -501,6 +501,7 @@ int hrtimer_cancel(struct hrtimer *timerif (ret >=0 )return ret; +cpu_relax (); } }
Quoted 1 line
_
Signed-off-by Thomas Gleixner <[email protected]>
Doh. It had been there once ..:)