summaryrefslogtreecommitdiffstats
path: root/include/linux/vtime.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/vtime.h')
-rw-r--r--include/linux/vtime.h16
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);
14static inline void vtime_task_switch(struct task_struct *prev) { } 14static inline void vtime_task_switch(struct task_struct *prev) { }
15static inline void vtime_account_system(struct task_struct *tsk) { } 15static inline void vtime_account_system(struct task_struct *tsk) { }
16static inline void vtime_account_system_irqsafe(struct task_struct *tsk) { } 16static inline void vtime_account_system_irqsafe(struct task_struct *tsk) { }
17static inline void vtime_account_user(struct task_struct *tsk) { }
17static inline void vtime_account(struct task_struct *tsk) { } 18static inline void vtime_account(struct task_struct *tsk) { }
18#endif 19#endif
19 20
21#ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN
22static inline void arch_vtime_task_switch(struct task_struct *tsk) { }
23static inline void vtime_user_enter(struct task_struct *tsk)
24{
25 vtime_account_system(tsk);
26}
27static inline void vtime_user_exit(struct task_struct *tsk)
28{
29 vtime_account_user(tsk);
30}
31#else
32static inline void vtime_user_enter(struct task_struct *tsk) { }
33static inline void vtime_user_exit(struct task_struct *tsk) { }
34#endif
35
20#ifdef CONFIG_IRQ_TIME_ACCOUNTING 36#ifdef CONFIG_IRQ_TIME_ACCOUNTING
21extern void irqtime_account_irq(struct task_struct *tsk); 37extern void irqtime_account_irq(struct task_struct *tsk);
22#else 38#else