Messages in this thread | | | Date | Mon, 27 Oct 2008 13:54:26 +0800 | From | Li Zefan <> | Subject | Re: [PATCH] Add hierarchical accounting to cpu accounting controller |
| |
> Ok. I realized that defining init_cpuacct_group explicitly and statically > isn't needed. I was just influenced by init_task_group and init_mem_cgroup. > I guess those controllers have different reasons to have their init groups > statically defined. >
I think one reason is, cpu_cgroup_subsys has to be initialized very early, and at that time kmalloc() is not usable, so we use statically defined init_task_group.
| |