path: root/security
diff options
authorLi Zefan <>2008-04-29 01:00:13 -0700
committerLinus Torvalds <>2008-04-29 08:06:10 -0700
commite8d55fdeb882cfcb5e8db5a5ce16edfba78aafc5 (patch)
tree0c0a7338d8adb2aaf4310eb89d1679c802ea617d /security
parent472b1053f3c319cc60bfb2a0bb062fed77a93eb6 (diff)
cgroups: simplify init_subsys()
We are at system boot and there is only 1 cgroup group (i,e, init_css_set), so we don't need to run through the css_set linked list. Neither do we need to run through the task list, since no processes have been created yet. Also referring to a comment in cgroup.h: struct css_set { ... /* * Set of subsystem states, one for each subsystem. This array * is immutable after creation apart from the init_css_set * during subsystem registration (at boot time). */ struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT]; } Signed-off-by: Li Zefan <> Reviewed-by: Paul Menage <> Cc: Balbir Singh <> Cc: Pavel Emelyanov <> Cc: KAMEZAWA Hiroyuki <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions