diff options
author | Li Zefan <lizefan@huawei.com> | 2013-03-29 14:44:04 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-04-10 13:54:20 +0200 |
commit | 14c6d3c8a47ced185b6375c4940b5b393f1a294e (patch) | |
tree | 1e7bb1aa142f89ed37988d432bffec7b8bf502f4 /kernel/sched/cpuacct.h | |
parent | 7943e15a3e91db78a7a3fbc84e45cf9d1c7c7d23 (diff) | |
download | linux-14c6d3c8a47ced185b6375c4940b5b393f1a294e.tar.bz2 |
sched/cpuacct: Initialize root cpuacct earlier
Now we don't need cpuacct_init(), and instead we just initialize
root_cpuacct when it's defined.
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/51553834.9090701@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/cpuacct.h')
-rw-r--r-- | kernel/sched/cpuacct.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/sched/cpuacct.h b/kernel/sched/cpuacct.h index 51cd76eb4f0f..ed605624a5e7 100644 --- a/kernel/sched/cpuacct.h +++ b/kernel/sched/cpuacct.h @@ -1,15 +1,10 @@ #ifdef CONFIG_CGROUP_CPUACCT -extern void cpuacct_init(void); extern void cpuacct_charge(struct task_struct *tsk, u64 cputime); extern void cpuacct_account_field(struct task_struct *p, int index, u64 val); #else -static inline void cpuacct_init(void) -{ -} - static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) { } |