sched/cpuacct: Initialize cpuacct subsystem earlier
authorLi Zefan <lizefan@huawei.com>
Fri, 29 Mar 2013 06:44:15 +0000 (14:44 +0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 10 Apr 2013 11:54:21 +0000 (13:54 +0200)
commit621e2de02403a6f776852c564b79c38bf3cc9032
treeecf275fcd1ae888a0655f271faffa20c32c4710d
parent14c6d3c8a47ced185b6375c4940b5b393f1a294e
sched/cpuacct: Initialize cpuacct subsystem earlier

Initialize cpuacct before the scheduler is functioning, so when
cpuacct_charge() and cpuacct_account_field() are called,
task_ca() won't return NULL.

Signed-off-by: Li Zefan <lizefan@huawei.com>
Cc: Tejun Heo <tj@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/5155383F.8000005@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/cpuacct.c