[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20101022122137.335103ca.kamezawa.hiroyu@jp.fujitsu.com>
Date: Fri, 22 Oct 2010 12:21:37 +0900
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
steiner@....com, yinghai@...nel.org, mingo@...e.hu,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [PATCH v2 2/2] try to fix /proc/stat scalability of irq sum of
all cpu
On Thu, 21 Oct 2010 12:58:16 -0700
Andrew Morton <akpm@...ux-foundation.org> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists