diff options
| author | Tony Luck <tony.luck@intel.com> | 2005-01-17 20:28:07 -0800 |
|---|---|---|
| committer | Tony Luck <tony.luck@intel.com> | 2005-01-17 20:28:07 -0800 |
| commit | 9790ee6f6a30db6b9fd4f27e437b87fa8e511cdd (patch) | |
| tree | 5283a41fba9fe6a85c0ed186ad0469dd0cc04323 /include/linux/kernel_stat.h | |
| parent | bcb39c06eefc908121323c23ead2fdd246585ad3 (diff) | |
| parent | fdefff6242ce95e350570a7f65e1ff49bc3a66b6 (diff) | |
Merge ia64 test tree back into release tree.
Diffstat (limited to 'include/linux/kernel_stat.h')
| -rw-r--r-- | include/linux/kernel_stat.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index 4594ccc4a7c1..dba27749b428 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h @@ -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 @@ -14,13 +15,14 @@ */ 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 */ |
