From: Daniel Wagner Date: Wed, 12 Sep 2012 14:12:08 +0000 (+0200) Subject: cgroup: Define CGROUP_SUBSYS_COUNT according the configuration X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~51^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6f00298b2ceaf50b4ab00e6ee3eb0206ac72fac;p=pandora-kernel.git cgroup: Define CGROUP_SUBSYS_COUNT according the configuration Since we know exactly how many subsystems exists at compile time we are able to define CGROUP_SUBSYS_COUNT correctly. CGROUP_SUBSYS_COUNT will be at max 12 (all controllers enabled). Depending on the architecture we safe either 32 - 12 pointers (80 bytes) or 64 - 12 pointers (416 bytes) per cgroup. With this change we can also remove the temporary placeholder to avoid compilation errors. Signed-off-by: Daniel Wagner Signed-off-by: Tejun Heo Acked-by: Li Zefan Acked-by: Neil Horman Cc: Gao feng Cc: Jamal Hadi Salim Cc: John Fastabend Cc: netdev@vger.kernel.org Cc: cgroups@vger.kernel.org --- Reading git-diff-tree failed