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