Skip to content
Commit 804b3c28 authored by Paul Menage's avatar Paul Menage Committed by Linus Torvalds
Browse files

cgroups: add cpu_relax() calls in css_tryget() and cgroup_clear_css_refs()



css_tryget() and cgroup_clear_css_refs() contain polling loops; these
loops should have cpu_relax calls in them to reduce cross-cache traffic.

Signed-off-by: default avatarPaul Menage <menage@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1404f065
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment