diff options
| author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2013-02-21 11:07:14 -0500 |
|---|---|---|
| committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2013-02-21 11:07:14 -0500 |
| commit | e29371d762df5bb35d2bc434ea266a046e5a0a75 (patch) | |
| tree | dac4a8db52d92453415f35606130a49e9f32e4ef /include/linux/kernel_stat.h | |
| parent | 17b14ca25e9cd6c5cd7605941f6120e405a84f8b (diff) | |
| parent | 894e2ac82bd0029adce7ad6c8d25501fdd82c994 (diff) | |
Merge branch 'master' of git://1984.lsi.us.es/nf
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..66b70780e910 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 | ||
| 129 | extern void account_process_tick(struct task_struct *, int user); | ||
| 130 | extern void account_steal_ticks(unsigned long ticks); | ||
| 131 | extern void account_idle_ticks(unsigned long ticks); | ||
| 132 | |||
| 133 | #ifdef CONFIG_VIRT_CPU_ACCOUNTING | 130 | #ifdef CONFIG_VIRT_CPU_ACCOUNTING |
| 134 | extern void vtime_task_switch(struct task_struct *prev); | 131 | static inline void account_process_tick(struct task_struct *tsk, int user) |
| 135 | extern void vtime_account_system(struct task_struct *tsk); | 132 | { |
| 136 | extern void vtime_account_idle(struct task_struct *tsk); | 133 | vtime_account_user(tsk); |
| 134 | } | ||
| 137 | #else | 135 | #else |
| 138 | static inline void vtime_task_switch(struct task_struct *prev) { } | 136 | extern void account_process_tick(struct task_struct *, int user); |
| 139 | #endif | 137 | #endif |
| 140 | 138 | ||
| 139 | extern void account_steal_ticks(unsigned long ticks); | ||
| 140 | extern void account_idle_ticks(unsigned long ticks); | ||
| 141 | |||
| 141 | #endif /* _LINUX_KERNEL_STAT_H */ | 142 | #endif /* _LINUX_KERNEL_STAT_H */ |
