2013-03-29 10:36:43 +04:00
|
|
|
#ifdef CONFIG_CGROUP_CPUACCT
|
|
|
|
|
|
|
|
extern void cpuacct_charge(struct task_struct *tsk, u64 cputime);
|
2016-03-17 07:19:43 +03:00
|
|
|
extern void cpuacct_account_field(struct task_struct *tsk, 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
|
2016-03-17 07:19:43 +03:00
|
|
|
cpuacct_account_field(struct task_struct *tsk, int index, u64 val)
|
2013-03-29 10:37:06 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-03-29 10:36:43 +04:00
|
|
|
#endif
|