diff options
| author | Steve French <sfrench@us.ibm.com> | 2005-11-09 17:33:22 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2005-11-09 17:33:22 -0500 |
| commit | e82b3aec8d508d2a925a4c766e97f16b7c4dfb1b (patch) | |
| tree | 69d5685ef0c194f651a03e30bff14628b4d45400 /include/linux/kernel_stat.h | |
| parent | ec58ef03284f0bfa50a04982b74c8c2325a0758e (diff) | |
| parent | ad8f76be48d817b48222411ae16a7dfe257bdb24 (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'include/linux/kernel_stat.h')
| -rw-r--r-- | include/linux/kernel_stat.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index dba27749b428..a484572c302e 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | #include <linux/smp.h> | 6 | #include <linux/smp.h> |
| 7 | #include <linux/threads.h> | 7 | #include <linux/threads.h> |
| 8 | #include <linux/percpu.h> | 8 | #include <linux/percpu.h> |
| 9 | #include <linux/cpumask.h> | ||
| 9 | #include <asm/cputime.h> | 10 | #include <asm/cputime.h> |
| 10 | 11 | ||
| 11 | /* | 12 | /* |
| @@ -43,11 +44,10 @@ extern unsigned long long nr_context_switches(void); | |||
| 43 | */ | 44 | */ |
| 44 | static inline int kstat_irqs(int irq) | 45 | static inline int kstat_irqs(int irq) |
| 45 | { | 46 | { |
| 46 | int i, sum=0; | 47 | int cpu, sum = 0; |
| 47 | 48 | ||
| 48 | for (i = 0; i < NR_CPUS; i++) | 49 | for_each_cpu(cpu) |
| 49 | if (cpu_possible(i)) | 50 | sum += kstat_cpu(cpu).irqs[irq]; |
| 50 | sum += kstat_cpu(i).irqs[irq]; | ||
| 51 | 51 | ||
| 52 | return sum; | 52 | return sum; |
| 53 | } | 53 | } |
