diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-17 22:40:50 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-17 22:40:50 -0400 |
| commit | 688d794c4c3f8b08c814381ee2edd3ede5856056 (patch) | |
| tree | ef680add71e2a9588d07d8b594edbc1b5cd127d7 /include/linux/kernel_stat.h | |
| parent | 16142655269aaf580488e074eabfdcf0fb4e3687 (diff) | |
| parent | a937536b868b8369b98967929045f1df54234323 (diff) | |
Merge tag 'v3.9-rc3' into next
Merge with mainline to bring in module_platform_driver_probe() and
devm_ioremap_resource().
Diffstat (limited to 'include/linux/kernel_stat.h')
| -rw-r--r-- | include/linux/kernel_stat.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index 36d12f0884c3..ed5f6ed6eb77 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | #include <linux/cpumask.h> | 7 | #include <linux/cpumask.h> |
| 8 | #include <linux/interrupt.h> | 8 | #include <linux/interrupt.h> |
| 9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
| 10 | #include <linux/vtime.h> | ||
| 10 | #include <asm/irq.h> | 11 | #include <asm/irq.h> |
| 11 | #include <asm/cputime.h> | 12 | #include <asm/cputime.h> |
| 12 | 13 | ||
| @@ -126,16 +127,16 @@ extern void account_system_time(struct task_struct *, int, cputime_t, cputime_t) | |||
| 126 | extern void account_steal_time(cputime_t); | 127 | extern void account_steal_time(cputime_t); |
| 127 | extern void account_idle_time(cputime_t); | 128 | extern void account_idle_time(cputime_t); |
| 128 | 129 | ||
| 130 | #ifdef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE | ||
| 131 | static inline void account_process_tick(struct task_struct *tsk, int user) | ||
| 132 | { | ||
| 133 | vtime_account_user(tsk); | ||
| 134 | } | ||
| 135 | #else | ||
| 129 | extern void account_process_tick(struct task_struct *, int user); | 136 | extern void account_process_tick(struct task_struct *, int user); |
| 137 | #endif | ||
| 138 | |||
| 130 | extern void account_steal_ticks(unsigned long ticks); | 139 | extern void account_steal_ticks(unsigned long ticks); |
| 131 | extern void account_idle_ticks(unsigned long ticks); | 140 | extern void account_idle_ticks(unsigned long ticks); |
| 132 | 141 | ||
| 133 | #ifdef CONFIG_VIRT_CPU_ACCOUNTING | ||
| 134 | extern void vtime_task_switch(struct task_struct *prev); | ||
| 135 | extern void vtime_account_system(struct task_struct *tsk); | ||
| 136 | extern void vtime_account_idle(struct task_struct *tsk); | ||
| 137 | #else | ||
| 138 | static inline void vtime_task_switch(struct task_struct *prev) { } | ||
| 139 | #endif | ||
| 140 | |||
| 141 | #endif /* _LINUX_KERNEL_STAT_H */ | 142 | #endif /* _LINUX_KERNEL_STAT_H */ |
