]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cgroup: implement static_key based cgroup_subsys_enabled() and cgroup_subsys_on_dfl()
authorTejun Heo <tj@kernel.org>
Fri, 18 Sep 2015 15:56:28 +0000 (11:56 -0400)
committerTejun Heo <tj@kernel.org>
Fri, 18 Sep 2015 15:56:28 +0000 (11:56 -0400)
commit49d1dc4b81797f88270832b11e9f73809e7e7209
treeff6548a57a57834e533a4404ddabf30139060ece
parentfa128fd735bd236b6b04d3fedfed7a784137c185
cgroup: implement static_key based cgroup_subsys_enabled() and cgroup_subsys_on_dfl()

Whether a subsys is enabled and attached to the default hierarchy
seldom changes and may be tested in the hot paths.  This patch
implements static_key based cgroup_subsys_enabled() and
cgroup_subsys_on_dfl() tests.

The following patches will update the users and remove duplicate
mechanisms.

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