Li Zefan | 60fed78 | 2013-03-29 14:36:43 +0800 | [diff] [blame] | 1 | #ifdef CONFIG_CGROUP_CPUACCT |
| 2 | |
Li Zefan | 60fed78 | 2013-03-29 14:36:43 +0800 | [diff] [blame] | 3 | extern void cpuacct_charge(struct task_struct *tsk, u64 cputime); |
Zhao Lei | 73e6aaf | 2016-03-17 12:19:43 +0800 | [diff] [blame] | 4 | extern void cpuacct_account_field(struct task_struct *tsk, int index, u64 val); |
Li Zefan | 60fed78 | 2013-03-29 14:36:43 +0800 | [diff] [blame] | 5 | |
| 6 | #else |
| 7 | |
Li Zefan | 60fed78 | 2013-03-29 14:36:43 +0800 | [diff] [blame] | 8 | static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) |
| 9 | { |
| 10 | } |
| 11 | |
Li Zefan | 1966aaf | 2013-03-29 14:37:06 +0800 | [diff] [blame] | 12 | static inline void |
Zhao Lei | 73e6aaf | 2016-03-17 12:19:43 +0800 | [diff] [blame] | 13 | cpuacct_account_field(struct task_struct *tsk, int index, u64 val) |
Li Zefan | 1966aaf | 2013-03-29 14:37:06 +0800 | [diff] [blame] | 14 | { |
| 15 | } |
| 16 | |
Li Zefan | 60fed78 | 2013-03-29 14:36:43 +0800 | [diff] [blame] | 17 | #endif |