Skip to content

Commit

Permalink
[PATCH] add cpu_relax to hrtimer_cancel
Browse files Browse the repository at this point in the history
Add a cpu_relax() to the hand-coded spinwait in hrtimer_cancel().

Signed-off-by: Joe Korty <joe.korty@ccur.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Joe Korty authored and Linus Torvalds committed Apr 11, 2006
1 parent 2395140 commit 5ef37b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ int hrtimer_cancel(struct hrtimer *timer)

if (ret >= 0)
return ret;
cpu_relax();
}
}

Expand Down

0 comments on commit 5ef37b1

Please sign in to comment.