diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-10-15 08:16:55 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:53:15 -0400 |
commit | 2cc21ef843d4fb7da122239b644a1f6f0aca60a6 (patch) | |
tree | 5d08e110164176c4011e42d4700ecd0050ad0ce9 /fs | |
parent | c6b7674f323622d86316bf7951ad9cae1ce24642 (diff) |
genirq: remove sparse irq code
This code is not ready, but we need to rip it out instead of rebasing
as we would lose the APIC/IO_APIC unification otherwise.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/proc_misc.c | 43 |
1 files changed, 5 insertions, 38 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index d68c3592fe4a..3f5c7b9d1a70 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -529,13 +529,10 @@ static int show_stat(struct seq_file *p, void *v) | |||
529 | softirq = cputime64_add(softirq, kstat_cpu(i).cpustat.softirq); | 529 | softirq = cputime64_add(softirq, kstat_cpu(i).cpustat.softirq); |
530 | steal = cputime64_add(steal, kstat_cpu(i).cpustat.steal); | 530 | steal = cputime64_add(steal, kstat_cpu(i).cpustat.steal); |
531 | guest = cputime64_add(guest, kstat_cpu(i).cpustat.guest); | 531 | guest = cputime64_add(guest, kstat_cpu(i).cpustat.guest); |
532 | |||
532 | for_each_irq_desc(j, desc) | 533 | for_each_irq_desc(j, desc) |
533 | { | 534 | sum += kstat_irqs_cpu(j, i); |
534 | unsigned int temp; | ||
535 | 535 | ||
536 | temp = kstat_irqs_cpu(j, i); | ||
537 | sum += temp; | ||
538 | } | ||
539 | sum += arch_irq_stat_cpu(i); | 536 | sum += arch_irq_stat_cpu(i); |
540 | } | 537 | } |
541 | sum += arch_irq_stat(); | 538 | sum += arch_irq_stat(); |
@@ -578,21 +575,13 @@ static int show_stat(struct seq_file *p, void *v) | |||
578 | seq_printf(p, "intr %llu", (unsigned long long)sum); | 575 | seq_printf(p, "intr %llu", (unsigned long long)sum); |
579 | 576 | ||
580 | /* sum again ? it could be updated? */ | 577 | /* sum again ? it could be updated? */ |
581 | for_each_irq_desc(j, desc) | 578 | for_each_irq_desc(j, desc) { |
582 | { | ||
583 | per_irq_sum = 0; | 579 | per_irq_sum = 0; |
584 | for_each_possible_cpu(i) { | ||
585 | unsigned int temp; | ||
586 | 580 | ||
587 | temp = kstat_irqs_cpu(j, i); | 581 | for_each_possible_cpu(i) |
588 | per_irq_sum += temp; | 582 | per_irq_sum += kstat_irqs_cpu(j, i); |
589 | } | ||
590 | 583 | ||
591 | #ifdef CONFIG_HAVE_SPARSE_IRQ | ||
592 | seq_printf(p, " %#x:%u", j, per_irq_sum); | ||
593 | #else | ||
594 | seq_printf(p, " %u", per_irq_sum); | 584 | seq_printf(p, " %u", per_irq_sum); |
595 | #endif | ||
596 | } | 585 | } |
597 | 586 | ||
598 | seq_printf(p, | 587 | seq_printf(p, |
@@ -645,36 +634,14 @@ static const struct file_operations proc_stat_operations = { | |||
645 | */ | 634 | */ |
646 | static void *int_seq_start(struct seq_file *f, loff_t *pos) | 635 | static void *int_seq_start(struct seq_file *f, loff_t *pos) |
647 | { | 636 | { |
648 | #ifdef CONFIG_HAVE_SPARSE_IRQ | ||
649 | struct irq_desc *desc; | ||
650 | int irq; | ||
651 | int count = *pos; | ||
652 | |||
653 | for_each_irq_desc(irq, desc) { | ||
654 | if (count-- == 0) | ||
655 | return desc; | ||
656 | } | ||
657 | |||
658 | return NULL; | ||
659 | #else | ||
660 | return (*pos <= nr_irqs) ? pos : NULL; | 637 | return (*pos <= nr_irqs) ? pos : NULL; |
661 | #endif | ||
662 | } | 638 | } |
663 | 639 | ||
664 | 640 | ||
665 | static void *int_seq_next(struct seq_file *f, void *v, loff_t *pos) | 641 | static void *int_seq_next(struct seq_file *f, void *v, loff_t *pos) |
666 | { | 642 | { |
667 | #ifdef CONFIG_HAVE_SPARSE_IRQ | ||
668 | struct irq_desc *desc; | ||
669 | |||
670 | desc = ((struct irq_desc *)v)->next; | ||
671 | (*pos)++; | ||
672 | |||
673 | return desc; | ||
674 | #else | ||
675 | (*pos)++; | 643 | (*pos)++; |
676 | return (*pos <= nr_irqs) ? pos : NULL; | 644 | return (*pos <= nr_irqs) ? pos : NULL; |
677 | #endif | ||
678 | } | 645 | } |
679 | 646 | ||
680 | static void int_seq_stop(struct seq_file *f, void *v) | 647 | static void int_seq_stop(struct seq_file *f, void *v) |