[PATCH] ARM: make app read out process num even not use SMP

Steven Rostedt rostedt at goodmis.org
Mon Sep 20 12:52:17 EDT 2010


On Sun, 2010-09-19 at 14:04 +0100, Russell King - ARM Linux wrote:

> There's a better way.  sysconf with _SC_NPROCESSORS_CONF for the number
> of configured processors, or _SC_NPROCESSORS_ONLN for the number of
> online processors.  Standard interfaces are always better than home-made
> interfaces.

I just pushed the update to the repo. It now uses the sysconf() feature.

I'll apply this to the stable version as well.

Thanks!

-- Steve





More information about the linux-arm-kernel mailing list