From: Aleksa Sarai Date: Sat, 6 Jun 2015 00:02:14 +0000 (+1000) Subject: cgroup: use bitmask to filter for_each_subsys X-Git-Tag: omap-for-v4.3/legacy-v2-signed~116^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb4a31675270;p=pandora-kernel.git cgroup: use bitmask to filter for_each_subsys Add a new macro for_each_subsys_which that allows all enabled cgroup subsystems to be filtered by a bitmask, such that mask & (1 << ssid) determines if the subsystem is to be processed in the loop body (where ssid is the unique id of the subsystem). Also replace the need_forkexit_callback with two separate bitmasks for each callback to make (ss->{fork,exit}) checks unnecessary. tj: add a short comment for "if (!CGROUP_SUBSYS_COUNT)". Signed-off-by: Aleksa Sarai --- Reading git-diff-tree failed