Commit | Line | Data |
---|---|---|
60fed789 LZ |
1 | #ifdef CONFIG_CGROUP_CPUACCT |
2 | ||
60fed789 | 3 | extern void cpuacct_charge(struct task_struct *tsk, u64 cputime); |
73e6aafd | 4 | extern void cpuacct_account_field(struct task_struct *tsk, int index, u64 val); |
60fed789 LZ |
5 | |
6 | #else | |
7 | ||
8 | static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) | |
9 | { | |
10 | } | |
11 | ||
1966aaf7 | 12 | static inline void |
73e6aafd | 13 | cpuacct_account_field(struct task_struct *tsk, int index, u64 val) |
1966aaf7 LZ |
14 | { |
15 | } | |
16 | ||
60fed789 | 17 | #endif |