1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _LINUX_KERNEL_STAT_H
13 #define _LINUX_KERNEL_STAT_H
16 #include <linux/smp.h>
17 #include <linux/threads.h>
18 #include <linux/percpu.h>
19 #include <linux/cpumask.h>
20 #include <asm/cputime.h>
22 struct cpu_usage_stat {
34 struct cpu_usage_stat cpustat;
35 unsigned int irqs[NR_IRQS];
38 #define kstat_cpu(cpu) per_cpu(kstat, cpu)
40 #define kstat_this_cpu __get_cpu_var(kstat)