cpupower: Better detect offlined CPUs
authorThomas Renninger <trenn@suse.de>
Thu, 11 Aug 2011 23:11:37 +0000 (01:11 +0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 15 Aug 2011 18:03:10 +0000 (20:03 +0200)
Before, checking for offlined CPUs was done dirty and
it was checked whether topology parsing returned -1 values.
But this is a valid case on a Xen (and possibly other) kernels.

Do proper online/offline checking, also take CONFIG_HOTPLUG_CPU
option into account (no /sys/devices/../cpuX/online file).

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>

No differences found