Merge branch 'linus' into perfcounters/core-v2
[linux-drm-fsl-dcu.git] / include / linux / kernel_stat.h
index 0c8b89f28a95eeccc1956c132777621bacf4d4c5..b6d2887a5d8893c010c520b9c919550ba80fa1c3 100644 (file)
@@ -81,7 +81,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, cputime_t);
 extern void account_system_time(struct task_struct *, int, cputime_t, cputime_t);
 extern void account_steal_time(cputime_t);