sched/cpuacct: Allocate per_cpu cpuusage for root cpuacct statically
[platform/adaptation/renesas_rcar/renesas_kernel.git] / kernel / sched / cpuacct.h
1 #ifdef CONFIG_CGROUP_CPUACCT
2
3 extern void cpuacct_init(void);
4 extern void cpuacct_charge(struct task_struct *tsk, u64 cputime);
5 extern void cpuacct_account_field(struct task_struct *p, int index, u64 val);
6
7 #else
8
9 static inline void cpuacct_init(void)
10 {
11 }
12
13 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime)
14 {
15 }
16
17 static inline void
18 cpuacct_account_field(struct task_struct *p, int index, u64 val)
19 {
20 }
21
22 #endif