lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ