vserver 1.9.5.x5
[linux-2.6.git] / include / linux / kernel_stat.h
index 4594ccc..dba2774 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/smp.h>
 #include <linux/threads.h>
 #include <linux/percpu.h>
+#include <asm/cputime.h>
 
 /*
  * 'kernel_stat.h' contains the definitions needed for doing
  */
 
 struct cpu_usage_stat {
-       u64 user;
-       u64 nice;
-       u64 system;
-       u64 softirq;
-       u64 irq;
-       u64 idle;
-       u64 iowait;
+       cputime64_t user;
+       cputime64_t nice;
+       cputime64_t system;
+       cputime64_t softirq;
+       cputime64_t irq;
+       cputime64_t idle;
+       cputime64_t iowait;
+       cputime64_t steal;
 };
 
 struct kernel_stat {
@@ -50,4 +52,8 @@ static inline int kstat_irqs(int irq)
        return sum;
 }
 
+extern void account_user_time(struct task_struct *, cputime_t);
+extern void account_system_time(struct task_struct *, int, cputime_t);
+extern void account_steal_time(struct task_struct *, cputime_t);
+
 #endif /* _LINUX_KERNEL_STAT_H */