diff options
Diffstat (limited to 'fs')
-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 15f7bd41029b..c652d469dc08 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -479,6 +479,13 @@ static const struct file_operations proc_vmalloc_operations = { | |||
479 | }; | 479 | }; |
480 | #endif | 480 | #endif |
481 | 481 | ||
482 | #ifndef arch_irq_stat_cpu | ||
483 | #define arch_irq_stat_cpu(cpu) 0 | ||
484 | #endif | ||
485 | #ifndef arch_irq_stat | ||
486 | #define arch_irq_stat() 0 | ||
487 | #endif | ||
488 | |||
482 | static int show_stat(struct seq_file *p, void *v) | 489 | static int show_stat(struct seq_file *p, void *v) |
483 | { | 490 | { |
484 | int i; | 491 | int i; |
@@ -516,7 +523,9 @@ static int show_stat(struct seq_file *p, void *v) | |||
516 | sum += temp; | 523 | sum += temp; |
517 | per_irq_sum[j] += temp; | 524 | per_irq_sum[j] += temp; |
518 | } | 525 | } |
526 | sum += arch_irq_stat_cpu(i); | ||
519 | } | 527 | } |
528 | sum += arch_irq_stat(); | ||
520 | 529 | ||
521 | seq_printf(p, "cpu %llu %llu %llu %llu %llu %llu %llu %llu %llu\n", | 530 | seq_printf(p, "cpu %llu %llu %llu %llu %llu %llu %llu %llu %llu\n", |
522 | (unsigned long long)cputime64_to_clock_t(user), | 531 | (unsigned long long)cputime64_to_clock_t(user), |