Commit a0009652af385a42f0e0604136f772ead406c78d

Authored by Andrew Morton
Committed by Linus Torvalds
1 parent 52e92e5788

[PATCH] del_timer_sync(): add cpu_relax()

Relax the CPU in the del_timer_sync() busywait loop.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -374,6 +374,7 @@
374 374 int ret = try_to_del_timer_sync(timer);
375 375 if (ret >= 0)
376 376 return ret;
  377 + cpu_relax();
377 378 }
378 379 }
379 380