[PATCH v3.1-rc9] ARM: populate processor tag in proc-cpuinfo for Uni-processor.

Andrew Morton akpm at linux-foundation.org
Thu Oct 13 16:52:34 EDT 2011

On Thu, 13 Oct 2011 17:48:22 +0100
Russell King - ARM Linux <linux at arm.linux.org.uk> wrote:

> On Thu, Oct 13, 2011 at 04:43:10PM +0100, Srinivas KANDAGATLA wrote:
> > We recently encountered issue while running cyclesoak on ARM-uniprocessor
> > system, What we have noticed it that /proc/cpuinfo does not have
> > "processor" tag when its uniprocessor, which looked incorrect.
> > All the processors code in kernel do populate this tag for both uni and
> > multi processor systems.
> > 
> > This patch just add processor tag for cpuinfo for ARM uni-processor systems.
> I wonder why cyclesoak doesn't use the sysconf(_SC_NPROCESSORS_ONLN)
> rather than implementing this functionality itself.
> akpm?

eep, cyclesoak will soon be celebrating its eleventh birthday. 
sysconf(_SC_NPROCESSORS_ONLN) might have existed back in those days,
but I sure didn't know about it!

More information about the linux-arm-kernel mailing list