]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cpufreq: Add warning message to powernow-k8
authorAndre Przywara <andre.przywara@amd.com>
Tue, 4 Sep 2012 08:28:04 +0000 (08:28 +0000)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 9 Sep 2012 20:04:41 +0000 (22:04 +0200)
cpufreq modules are often loaded from init scripts that assume that
all recent AMD systems will use powernow-k8.
To inform the user of the change of support and ease the transition
to acpi-cpufreq, emit a warning message.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/cpufreq/Kconfig.x86
drivers/cpufreq/powernow-k8.c

index 8d12e378a7efad6d1a05b73b1b3c4d8ddd334711..b36ca1f68bff006a2e76875c33286680b4c34889 100644 (file)
@@ -96,7 +96,8 @@ config X86_POWERNOW_K8
        select CPU_FREQ_TABLE
        depends on ACPI && ACPI_PROCESSOR
        help
-         This adds the CPUFreq driver for K8/K10 Opteron/Athlon64 processors.
+         This adds the CPUFreq driver for K8/early Opteron/Athlon64 processors.
+         Support for K10 and newer processors is now in acpi-cpufreq.
 
          To compile this driver as a module, choose M here: the
          module will be called powernow-k8.
index 33f17c4a1342a41c28fa34586dc741a58b358714..e2defb822bb1d149f52d4cfbfbf05536dc86ef7c 100644 (file)
@@ -1563,6 +1563,9 @@ static int __cpuinit powernowk8_init(void)
        if (!x86_match_cpu(powernow_k8_ids))
                return -ENODEV;
 
+       if (static_cpu_has(X86_FEATURE_HW_PSTATE))
+               pr_warn(PFX "support for this CPU is deprecated, use acpi-cpufreq instead.\n");
+
        for_each_online_cpu(i) {
                int rc;
                smp_call_function_single(i, check_supported_cpu, &rc, 1);