Source
1069
1069
/* only run on specific CPU from here on */
1070
1070
init_on_cpu.data = data;
1071
1071
smp_call_function_single(data->cpu, powernowk8_cpu_init_on_cpu,
1072
1072
&init_on_cpu, 1);
1073
1073
rc = init_on_cpu.rc;
1074
1074
if (rc != 0)
1075
1075
goto err_out_exit_acpi;
1076
1076
1077
1077
cpumask_copy(pol->cpus, topology_core_cpumask(pol->cpu));
1078
1078
data->available_cores = pol->cpus;
1079
-
1080
-
/* min/max the cpu is capable of */
1081
-
if (cpufreq_table_validate_and_show(pol, data->powernow_table)) {
1082
-
pr_err(FW_BUG "invalid powernow_table\n");
1083
-
powernow_k8_cpu_exit_acpi(data);
1084
-
kfree(data->powernow_table);
1085
-
kfree(data);
1086
-
return -EINVAL;
1087
-
}
1079
+
pol->freq_table = data->powernow_table;
1088
1080
1089
1081
pr_debug("cpu_init done, current fid 0x%x, vid 0x%x\n",
1090
1082
data->currfid, data->currvid);
1091
1083
1092
1084
/* Point all the CPUs in this policy to the same data */
1093
1085
for_each_cpu(cpu, pol->cpus)
1094
1086
per_cpu(powernow_data, cpu) = data;
1095
1087
1096
1088
return 0;
1097
1089