1 2 3 4 5 6 7 8 9 10 11 12 13 14
#ifndef _LINUX_CPU_ACCT_H #define _LINUX_CPU_ACCT_H #include <linux/cgroup.h> #include <asm/cputime.h> #ifdef CONFIG_CGROUP_CPUACCT extern void cpuacct_charge(struct task_struct *, cputime_t cputime); #else static void inline cpuacct_charge(struct task_struct *p, cputime_t cputime) {} #endif #endif