cgroups: add cpu_relax() calls in css_tryget() and cgroup_clear_css_refs()
authorPaul Menage <menage@google.com>
Thu, 29 Jan 2009 22:25:21 +0000 (14:25 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Jan 2009 02:04:45 +0000 (18:04 -0800)
commit804b3c28a4e4fa1c224571bf76edb534b9c4b1ed
tree59e0dabb227a5067cfdc7cce13f149f141ef8cb4
parent1404f06565ee89e0ce04d4a5859c00b0e3a0dc8d
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: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/cgroup.h
kernel/cgroup.c