From: Thomas Renninger Date: Thu, 11 Aug 2011 23:11:37 +0000 (+0200) Subject: cpupower: Better detect offlined CPUs X-Git-Tag: v3.1-rc4~41^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c74d2bc5a9d43d33d6f16c1e706147162e2bc52;p=pandora-kernel.git cpupower: Better detect offlined CPUs 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 Signed-off-by: Dominik Brodowski --- Reading git-diff-tree failed