]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: make CSS_* flags bit masks instead of bit positions
authorTejun Heo <tj@kernel.org>
Mon, 19 Nov 2012 16:13:36 +0000 (08:13 -0800)
committerTejun Heo <tj@kernel.org>
Mon, 19 Nov 2012 16:13:36 +0000 (08:13 -0800)
commit5802b032e8d2431a3af5b531e2b60a645a49b2ea
tree1692ce65068d5df48768564548ec7e4ed4b67da5
parent5d11c85df48e4bb4093b29b97d67c8e22926888f
cgroup: make CSS_* flags bit masks instead of bit positions

Currently, CSS_* flags are defined as bit positions and manipulated
using atomic bitops.  There's no reason to use atomic bitops for them
and bit positions are clunkier to deal with than bit masks.  Make
CSS_* bit masks instead and use the usual C bitwise operators to
access them.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
include/linux/cgroup.h
kernel/cgroup.c