[PATCH]: mpstat: code shrink

Benjamin Cama benoar at free.fr
Fri Jul 30 16:28:13 UTC 2010


Hi,

Le vendredi 30 juillet 2010 à 16:44 +0200, Denys Vlasenko a écrit :
> On Fri, Jul 30, 2010 at 10:40 AM, Marek Polacek <mmpolacek at gmail.com> wrote:
> > OK, here's another version -- it just removes function, which determines
> > number of CPUs in /sys.
> 
> Applied, thanks!

It seemed to me that hardware-related stuff would rather be in /sys in
the 2.6 era, am I wrong ? This /proc entry is not deprecated, but I'd
rather keep a way to get this information from /sys. Even if it could be
better made by reading /sys/devices/system/cpu/online. I thought about
doing that, but wondered if there is an equivalent of bitmap_parselist
(from linux/lib/bitmap.c) in busybox already ?

Regards,
benjamin



More information about the busybox mailing list