diff options
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/proc_misc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 74a323d2b850..903e617bec58 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -472,6 +472,13 @@ static const struct file_operations proc_vmalloc_operations = { | |||
472 | }; | 472 | }; |
473 | #endif | 473 | #endif |
474 | 474 | ||
475 | #ifndef arch_irq_stat_cpu | ||
476 | #define arch_irq_stat_cpu(cpu) 0 | ||
477 | #endif | ||
478 | #ifndef arch_irq_stat | ||
479 | #define arch_irq_stat() 0 | ||
480 | #endif | ||
481 | |||
475 | static int show_stat(struct seq_file *p, void *v) | 482 | static int show_stat(struct seq_file *p, void *v) |
476 | { | 483 | { |
477 | int i; | 484 | int i; |
@@ -509,7 +516,9 @@ static int show_stat(struct seq_file *p, void *v) | |||
509 | sum += temp; | 516 | sum += temp; |
510 | per_irq_sum[j] += temp; | 517 | per_irq_sum[j] += temp; |
511 | } | 518 | } |
519 | sum += arch_irq_stat_cpu(i); | ||
512 | } | 520 | } |
521 | sum += arch_irq_stat(); | ||
513 | 522 | ||
514 | seq_printf(p, "cpu %llu %llu %llu %llu %llu %llu %llu %llu %llu\n", | 523 | seq_printf(p, "cpu %llu %llu %llu %llu %llu %llu %llu %llu %llu\n", |
515 | (unsigned long long)cputime64_to_clock_t(user), | 524 | (unsigned long long)cputime64_to_clock_t(user), |