[CPUFREQ] Handle CPUs with different capabilities in acpi-cpufreq
authorMatthew Garrett <mjg@redhat.com>
Wed, 13 Jul 2011 21:58:32 +0000 (17:58 -0400)
committerDave Jones <davej@redhat.com>
Wed, 13 Jul 2011 22:29:49 +0000 (18:29 -0400)
commit92e03c41a415e8e9e8009a1f5bbb9036f3bfb2f4
treef6f723abb63d5ee3a0dc041a541bda5f51746525
parent8d86e5f91440aa56a5df516bf58fe3883552ad56
[CPUFREQ] Handle CPUs with different capabilities in acpi-cpufreq

acpi-cpufreq checks each CPU for aperf/mperf support, but only sets a
global flag. This will cause errors if some CPUs in the system don't
support the feature. Check boot_cpu_has() instead in order to make sure
that all CPUs support it.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/acpi-cpufreq.c