Re: [PATCH v2 2/2] try to fix /proc/stat scalability of irq sum ofall cpu
From: KAMEZAWA Hiroyuki
Date: Thu Oct 21 2010 - 23:27:12 EST
On Thu, 21 Oct 2010 12:58:16 -0700
Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> > /*
> > * Number of interrupts per cpu, since bootup
> > Index: mmotm-1020/kernel/irq/irqdesc.c
> > ===================================================================
> > --- mmotm-1020.orig/kernel/irq/irqdesc.c
> > +++ mmotm-1020/kernel/irq/irqdesc.c
> > @@ -393,3 +393,19 @@ unsigned int kstat_irqs_cpu(unsigned int
> > struct irq_desc *desc = irq_to_desc(irq);
> > return desc ? desc->kstat_irqs[cpu] : 0;
> > }
> > +
> > +#ifdef CONFIG_GENERIC_HARDIRQS
> > +unsigned int kstat_irqs(unsigned int irq)
> > +{
> > + struct irq_desc *desc = irq_to_desc(irq);
> > + int cpu;
> > + int sum = 0;
> > +
> > + if (!desc)
> > + return 0;
> > + for_each_possible_cpu(cpu)
> > + sum += desc->kstat_irqs[cpu];
> > + return sum;
> > +}
> > +EXPORT_SYMBOL_GPL(kstat_irqs);
>
> kstat_irqs() needs to be exported to modules because of some silliness
> in drivers/isdn/hisax/config.c. But in linux-next that silliness got
> deleted and the kstat_irqs export was removed.
>
Okay, thank you for fixing.
-Kame
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/