diff options
Diffstat (limited to 'include/linux/latencytop.h')
-rw-r--r-- | include/linux/latencytop.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/latencytop.h b/include/linux/latencytop.h index 84f1053cf2a8..f5dfbb64bffc 100644 --- a/include/linux/latencytop.h +++ b/include/linux/latencytop.h @@ -11,6 +11,9 @@ #define _INCLUDE_GUARD_LATENCYTOP_H_ #include <linux/compiler.h> + +#include <asm/current.h> + struct task_struct; #ifdef CONFIG_LATENCYTOP @@ -51,4 +54,10 @@ static inline void clear_tsk_latency_tracing(struct task_struct *p) #endif +static inline void +account_latency(int usecs) +{ + account_scheduler_latency(current, usecs, 0); +} + #endif |