]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - kernel/sched/cpuacct.h
Merge remote-tracking branches 'asoc/topic/dwc', 'asoc/topic/fallthrough', 'asoc...
[mirror_ubuntu-bionic-kernel.git] / kernel / sched / cpuacct.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
60fed789
LZ
2#ifdef CONFIG_CGROUP_CPUACCT
3
60fed789 4extern void cpuacct_charge(struct task_struct *tsk, u64 cputime);
73e6aafd 5extern void cpuacct_account_field(struct task_struct *tsk, int index, u64 val);
60fed789
LZ
6
7#else
8
9static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime)
10{
11}
12
1966aaf7 13static inline void
73e6aafd 14cpuacct_account_field(struct task_struct *tsk, int index, u64 val)
1966aaf7
LZ
15{
16}
17
60fed789 18#endif