2013-03-29 14:36:43 +08:00
|
|
|
#ifdef CONFIG_CGROUP_CPUACCT
|
|
|
|
|
|
|
|
extern void cpuacct_charge(struct task_struct *tsk, u64 cputime);
|
2013-03-29 14:37:06 +08:00
|
|
|
extern void cpuacct_account_field(struct task_struct *p, int index, u64 val);
|
2013-03-29 14:36:43 +08:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-03-29 14:37:06 +08:00
|
|
|
static inline void
|
|
|
|
cpuacct_account_field(struct task_struct *p, int index, u64 val)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-03-29 14:36:43 +08:00
|
|
|
#endif
|