]> Pileus Git - ~andy/linux/commit
acpi-cpufreq: skip loading acpi_cpufreq after intel_pstate
authorYinghai Lu <yinghai@kernel.org>
Fri, 20 Sep 2013 17:43:56 +0000 (10:43 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 25 Sep 2013 01:19:09 +0000 (03:19 +0200)
commit8a61e12e84597b5f8155ac91b44dea866ccfaac2
treead5b14b1f1ad4acd0fc19e61ba34091d32ccc3b5
parent4a10c2ac2f368583138b774ca41fac4207911983
acpi-cpufreq: skip loading acpi_cpufreq after intel_pstate

If the hw supports intel_pstate and acpi_cpufreq, intel_pstate will
get loaded first.

acpi_cpufreq_init() will call acpi_cpufreq_early_init()
and that will allocate perf data and init those perf data in ACPI core,
(that will cover all CPUs). But later it will free them as
cpufreq_register_driver(acpi_cpufreq) will fail as intel_pstate is
already registered

Use cpufreq_get_current_driver() to check if we can skip the
acpi_cpufreq loading.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/acpi-cpufreq.c