mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
perfcounters: fix task clock counter
Impact: fix per task clock counter precision Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
7671581f16
commit
aa9c4c0f96
4 changed files with 120 additions and 24 deletions
|
@ -66,7 +66,15 @@ static inline unsigned int kstat_irqs(unsigned int irq)
|
|||
return sum;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Lock/unlock the current runqueue - to extract task statistics:
|
||||
*/
|
||||
extern void curr_rq_lock_irq_save(unsigned long *flags);
|
||||
extern void curr_rq_unlock_irq_restore(unsigned long *flags);
|
||||
extern unsigned long long __task_delta_exec(struct task_struct *tsk, int update);
|
||||
extern unsigned long long task_delta_exec(struct task_struct *);
|
||||
|
||||
extern void account_user_time(struct task_struct *, cputime_t);
|
||||
extern void account_user_time_scaled(struct task_struct *, cputime_t);
|
||||
extern void account_system_time(struct task_struct *, int, cputime_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue