]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit100dd333778bed4e2943f7502c8338b6b0b2ce5f
tree59e0dabb227a5067cfdc7cce13f149f141ef8cb4
parenta3dd815b5dd4eacdf48a84cd0d862543ba0e6bf6
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