diff options
Diffstat (limited to 'include/linux/vtime.h')
-rw-r--r-- | include/linux/vtime.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/vtime.h b/include/linux/vtime.h index ae30ab58431a..21ef703d1b25 100644 --- a/include/linux/vtime.h +++ b/include/linux/vtime.h | |||
@@ -14,9 +14,25 @@ extern void vtime_account(struct task_struct *tsk); | |||
14 | static inline void vtime_task_switch(struct task_struct *prev) { } | 14 | static inline void vtime_task_switch(struct task_struct *prev) { } |
15 | static inline void vtime_account_system(struct task_struct *tsk) { } | 15 | static inline void vtime_account_system(struct task_struct *tsk) { } |
16 | static inline void vtime_account_system_irqsafe(struct task_struct *tsk) { } | 16 | static inline void vtime_account_system_irqsafe(struct task_struct *tsk) { } |
17 | static inline void vtime_account_user(struct task_struct *tsk) { } | ||
17 | static inline void vtime_account(struct task_struct *tsk) { } | 18 | static inline void vtime_account(struct task_struct *tsk) { } |
18 | #endif | 19 | #endif |
19 | 20 | ||
21 | #ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN | ||
22 | static inline void arch_vtime_task_switch(struct task_struct *tsk) { } | ||
23 | static inline void vtime_user_enter(struct task_struct *tsk) | ||
24 | { | ||
25 | vtime_account_system(tsk); | ||
26 | } | ||
27 | static inline void vtime_user_exit(struct task_struct *tsk) | ||
28 | { | ||
29 | vtime_account_user(tsk); | ||
30 | } | ||
31 | #else | ||
32 | static inline void vtime_user_enter(struct task_struct *tsk) { } | ||
33 | static inline void vtime_user_exit(struct task_struct *tsk) { } | ||
34 | #endif | ||
35 | |||
20 | #ifdef CONFIG_IRQ_TIME_ACCOUNTING | 36 | #ifdef CONFIG_IRQ_TIME_ACCOUNTING |
21 | extern void irqtime_account_irq(struct task_struct *tsk); | 37 | extern void irqtime_account_irq(struct task_struct *tsk); |
22 | #else | 38 | #else |