aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/acpi-cpufreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq/acpi-cpufreq.c')
-rw-r--r--drivers/cpufreq/acpi-cpufreq.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c
index 067a61f06bb5..70e717305c29 100644
--- a/drivers/cpufreq/acpi-cpufreq.c
+++ b/drivers/cpufreq/acpi-cpufreq.c
@@ -51,6 +51,8 @@ MODULE_AUTHOR("Paul Diefenbaugh, Dominik Brodowski");
51MODULE_DESCRIPTION("ACPI Processor P-States Driver"); 51MODULE_DESCRIPTION("ACPI Processor P-States Driver");
52MODULE_LICENSE("GPL"); 52MODULE_LICENSE("GPL");
53 53
54#define PFX "acpi-cpufreq: "
55
54enum { 56enum {
55 UNDEFINED_CAPABLE = 0, 57 UNDEFINED_CAPABLE = 0,
56 SYSTEM_INTEL_MSR_CAPABLE, 58 SYSTEM_INTEL_MSR_CAPABLE,
@@ -586,6 +588,14 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
586 policy->shared_type = CPUFREQ_SHARED_TYPE_ALL; 588 policy->shared_type = CPUFREQ_SHARED_TYPE_ALL;
587 cpumask_copy(policy->cpus, cpu_core_mask(cpu)); 589 cpumask_copy(policy->cpus, cpu_core_mask(cpu));
588 } 590 }
591
592 if (check_amd_hwpstate_cpu(cpu) && !acpi_pstate_strict) {
593 cpumask_clear(policy->cpus);
594 cpumask_set_cpu(cpu, policy->cpus);
595 cpumask_copy(policy->related_cpus, cpu_sibling_mask(cpu));
596 policy->shared_type = CPUFREQ_SHARED_TYPE_HW;
597 pr_info_once(PFX "overriding BIOS provided _PSD data\n");
598 }
589#endif 599#endif
590 600
591 /* capability check */ 601 /* capability check */