cpuacct.h 398 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifdef CONFIG_CGROUP_CPUACCT
  3. extern void cpuacct_charge(struct task_struct *tsk, u64 cputime);
  4. extern void cpuacct_account_field(struct task_struct *tsk, int index, u64 val);
  5. #else
  6. static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime)
  7. {
  8. }
  9. static inline void
  10. cpuacct_account_field(struct task_struct *tsk, int index, u64 val)
  11. {
  12. }
  13. #endif