aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/cpufreq/powernow-k8.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c
index f9ce7e4bf0fe..5c035d04d827 100644
--- a/drivers/cpufreq/powernow-k8.c
+++ b/drivers/cpufreq/powernow-k8.c
@@ -57,13 +57,6 @@ static DEFINE_PER_CPU(struct powernow_k8_data *, powernow_data);
57 57
58static struct cpufreq_driver cpufreq_amd64_driver; 58static struct cpufreq_driver cpufreq_amd64_driver;
59 59
60#ifndef CONFIG_SMP
61static inline const struct cpumask *cpu_core_mask(int cpu)
62{
63 return cpumask_of(0);
64}
65#endif
66
67/* Return a frequency in MHz, given an input fid */ 60/* Return a frequency in MHz, given an input fid */
68static u32 find_freq_from_fid(u32 fid) 61static u32 find_freq_from_fid(u32 fid)
69{ 62{
@@ -620,7 +613,7 @@ static int fill_powernow_table(struct powernow_k8_data *data,
620 613
621 pr_debug("cfid 0x%x, cvid 0x%x\n", data->currfid, data->currvid); 614 pr_debug("cfid 0x%x, cvid 0x%x\n", data->currfid, data->currvid);
622 data->powernow_table = powernow_table; 615 data->powernow_table = powernow_table;
623 if (cpumask_first(cpu_core_mask(data->cpu)) == data->cpu) 616 if (cpumask_first(topology_core_cpumask(data->cpu)) == data->cpu)
624 print_basics(data); 617 print_basics(data);
625 618
626 for (j = 0; j < data->numps; j++) 619 for (j = 0; j < data->numps; j++)
@@ -784,7 +777,7 @@ static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data)
784 CPUFREQ_TABLE_END; 777 CPUFREQ_TABLE_END;
785 data->powernow_table = powernow_table; 778 data->powernow_table = powernow_table;
786 779
787 if (cpumask_first(cpu_core_mask(data->cpu)) == data->cpu) 780 if (cpumask_first(topology_core_cpumask(data->cpu)) == data->cpu)
788 print_basics(data); 781 print_basics(data);
789 782
790 /* notify BIOS that we exist */ 783 /* notify BIOS that we exist */
@@ -1090,7 +1083,7 @@ static int powernowk8_cpu_init(struct cpufreq_policy *pol)
1090 if (rc != 0) 1083 if (rc != 0)
1091 goto err_out_exit_acpi; 1084 goto err_out_exit_acpi;
1092 1085
1093 cpumask_copy(pol->cpus, cpu_core_mask(pol->cpu)); 1086 cpumask_copy(pol->cpus, topology_core_cpumask(pol->cpu));
1094 data->available_cores = pol->cpus; 1087 data->available_cores = pol->cpus;
1095 1088
1096 /* min/max the cpu is capable of */ 1089 /* min/max the cpu is capable of */