mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
14c6d3c8a4
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>
18 lines
355 B
C
18 lines
355 B
C
#ifdef CONFIG_CGROUP_CPUACCT
|
|
|
|
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_charge(struct task_struct *tsk, u64 cputime)
|
|
{
|
|
}
|
|
|
|
static inline void
|
|
cpuacct_account_field(struct task_struct *p, int index, u64 val)
|
|
{
|
|
}
|
|
|
|
#endif
|