Skip to content

Commit

Permalink
[PATCH] del_timer_sync(): add cpu_relax()
Browse files Browse the repository at this point in the history
Relax the CPU in the del_timer_sync() busywait loop.

Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jul 15, 2006
1 parent 52e92e5 commit a000965
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ int del_timer_sync(struct timer_list *timer)
int ret = try_to_del_timer_sync(timer);
if (ret >= 0)
return ret;
cpu_relax();
}
}

Expand Down

0 comments on commit a000965

Please sign in to comment.