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