GNU Linux-libre 4.14.332-gnu1
[releases.git] / kernel / sched / cpuacct.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifdef CONFIG_CGROUP_CPUACCT
3
4 extern void cpuacct_charge(struct task_struct *tsk, u64 cputime);
5 extern void cpuacct_account_field(struct task_struct *tsk, int index, u64 val);
6
7 #else
8
9 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime)
10 {
11 }
12
13 static inline void
14 cpuacct_account_field(struct task_struct *tsk, int index, u64 val)
15 {
16 }
17
18 #endif