commit | 49d1dc4b81797f88270832b11e9f73809e7e7209 | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Fri Sep 18 11:56:28 2015 -0400 |
committer | Tejun Heo <tj@kernel.org> | Fri Sep 18 11:56:28 2015 -0400 |
tree | ff6548a57a57834e533a4404ddabf30139060ece | |
parent | fa128fd735bd236b6b04d3fedfed7a784137c185 [diff] |
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>