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