blob: 7199c24c8204ab397c3ca563bfdfbcbd15537b5e [file] [log] [blame]
Frederic Weisbeckerdcbf8322012-10-05 23:07:19 +02001#ifndef _LINUX_KERNEL_VTIME_H
2#define _LINUX_KERNEL_VTIME_H
3
4struct task_struct;
5
6#ifdef CONFIG_VIRT_CPU_ACCOUNTING
7extern void vtime_task_switch(struct task_struct *prev);
8extern void vtime_account_system(struct task_struct *tsk);
9extern void vtime_account_idle(struct task_struct *tsk);
10#else
11static inline void vtime_task_switch(struct task_struct *prev) { }
12#endif
13
14#if !defined(CONFIG_VIRT_CPU_ACCOUNTING) && !defined(CONFIG_IRQ_TIME_ACCOUNTING)
15static inline void vtime_account(struct task_struct *tsk)
16{
17}
18#else
19extern void vtime_account(struct task_struct *tsk);
20#endif
21
22#endif /* _LINUX_KERNEL_VTIME_H */