diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-17 08:10:57 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-23 06:45:14 -0500 |
commit | aa9c4c0f967fdb482ea95e8473ec3d201e6e0781 (patch) | |
tree | 8223d34630b7d3130825e8a2197e9bb51c34b7fa /include/linux/kernel_stat.h | |
parent | 7671581f1666ef4b54a1c1e598c51ac44c060a9b (diff) |
perfcounters: fix task clock counter
Impact: fix per task clock counter precision
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/kernel_stat.h')
-rw-r--r-- | include/linux/kernel_stat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index 4a145caeee07..1b2e3242497c 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h | |||
@@ -66,7 +66,15 @@ static inline unsigned int kstat_irqs(unsigned int irq) | |||
66 | return sum; | 66 | return sum; |
67 | } | 67 | } |
68 | 68 | ||
69 | |||
70 | /* | ||
71 | * Lock/unlock the current runqueue - to extract task statistics: | ||
72 | */ | ||
73 | extern void curr_rq_lock_irq_save(unsigned long *flags); | ||
74 | extern void curr_rq_unlock_irq_restore(unsigned long *flags); | ||
75 | extern unsigned long long __task_delta_exec(struct task_struct *tsk, int update); | ||
69 | extern unsigned long long task_delta_exec(struct task_struct *); | 76 | extern unsigned long long task_delta_exec(struct task_struct *); |
77 | |||
70 | extern void account_user_time(struct task_struct *, cputime_t); | 78 | extern void account_user_time(struct task_struct *, cputime_t); |
71 | extern void account_user_time_scaled(struct task_struct *, cputime_t); | 79 | extern void account_user_time_scaled(struct task_struct *, cputime_t); |
72 | extern void account_system_time(struct task_struct *, int, cputime_t); | 80 | extern void account_system_time(struct task_struct *, int, cputime_t); |