diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-12-17 07:16:08 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-12-17 07:16:08 -0500 |
| commit | 948a7b2b5e2bf126fb697aeb11ff379b2c85dd2e (patch) | |
| tree | 727c744438a44d85f7dc340b1bfcb3b127c84f13 /fs/proc/stat.c | |
| parent | 9466d6036f73481104039fbe99338baed11c8fea (diff) | |
| parent | 17483a1f34c970e6c2cb8c082d4441bfabbe88a9 (diff) | |
Merge branch 'irq/sparseirq' into cpus4096
Conflicts:
arch/x86/kernel/io_apic.c
Merge irq/sparseirq here, to resolve conflicts.
Diffstat (limited to 'fs/proc/stat.c')
| -rw-r--r-- | fs/proc/stat.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/proc/stat.c b/fs/proc/stat.c index 3cb9492801c0..3bb1cf1e7425 100644 --- a/fs/proc/stat.c +++ b/fs/proc/stat.c | |||
| @@ -27,7 +27,6 @@ static int show_stat(struct seq_file *p, void *v) | |||
| 27 | u64 sum = 0; | 27 | u64 sum = 0; |
| 28 | struct timespec boottime; | 28 | struct timespec boottime; |
| 29 | unsigned int per_irq_sum; | 29 | unsigned int per_irq_sum; |
| 30 | struct irq_desc *desc; | ||
| 31 | 30 | ||
| 32 | user = nice = system = idle = iowait = | 31 | user = nice = system = idle = iowait = |
| 33 | irq = softirq = steal = cputime64_zero; | 32 | irq = softirq = steal = cputime64_zero; |
| @@ -47,8 +46,7 @@ static int show_stat(struct seq_file *p, void *v) | |||
| 47 | guest = cputime64_add(guest, kstat_cpu(i).cpustat.guest); | 46 | guest = cputime64_add(guest, kstat_cpu(i).cpustat.guest); |
| 48 | for_each_irq_nr(j) { | 47 | for_each_irq_nr(j) { |
| 49 | #ifdef CONFIG_SPARSE_IRQ | 48 | #ifdef CONFIG_SPARSE_IRQ |
| 50 | desc = irq_to_desc(j); | 49 | if (!irq_to_desc(j)) |
| 51 | if (!desc) | ||
| 52 | continue; | 50 | continue; |
| 53 | #endif | 51 | #endif |
| 54 | sum += kstat_irqs_cpu(j, i); | 52 | sum += kstat_irqs_cpu(j, i); |
| @@ -98,8 +96,7 @@ static int show_stat(struct seq_file *p, void *v) | |||
| 98 | for_each_irq_nr(j) { | 96 | for_each_irq_nr(j) { |
| 99 | per_irq_sum = 0; | 97 | per_irq_sum = 0; |
| 100 | #ifdef CONFIG_SPARSE_IRQ | 98 | #ifdef CONFIG_SPARSE_IRQ |
| 101 | desc = irq_to_desc(j); | 99 | if (!irq_to_desc(j)) { |
| 102 | if (!desc) { | ||
| 103 | seq_printf(p, " %u", per_irq_sum); | 100 | seq_printf(p, " %u", per_irq_sum); |
| 104 | continue; | 101 | continue; |
| 105 | } | 102 | } |
