From: Yinghai Lu Date: Fri, 20 Sep 2013 17:43:56 +0000 (-0700) Subject: acpi-cpufreq: skip loading acpi_cpufreq after intel_pstate X-Git-Tag: v3.12-rc3~12^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a61e12e84597b5f8155ac91b44dea866ccfaac2;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed