Skip to content

Commit a0abd52

Browse files
committed
cpumask: fix powernow-k8: partial revert of 2fdf66b
Impact: fix powernow-k8 when acpi=off (or other error). There was a spurious change introduced into powernow-k8 in this patch: so that we try to "restore" the cpus_allowed we never saved. We revert that file. See lkml "[PATCH] x86/powernow: fix cpus_allowed brokage when acpi=off" from Yinghai for the bug report. Cc: Mike Travis <travis@sgi.com> Cc: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Ingo Molnar <mingo@elte.hu>
1 parent d2f8d7e commit a0abd52

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎arch/x86/kernel/cpu/cpufreq/powernow-k8.c‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,8 +1157,7 @@ static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol)
11571157
data->cpu = pol->cpu;
11581158
data->currpstate = HW_PSTATE_INVALID;
11591159

1160-
rc = powernow_k8_cpu_init_acpi(data);
1161-
if (rc) {
1160+
if (powernow_k8_cpu_init_acpi(data)) {
11621161
/*
11631162
* Use the PSB BIOS structure. This is only availabe on
11641163
* an UP version, and is deprecated by AMD.
@@ -1176,17 +1175,20 @@ static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol)
11761175
"ACPI maintainers and complain to your BIOS "
11771176
"vendor.\n");
11781177
#endif
1179-
goto err_out;
1178+
kfree(data);
1179+
return -ENODEV;
11801180
}
11811181
if (pol->cpu != 0) {
11821182
printk(KERN_ERR FW_BUG PFX "No ACPI _PSS objects for "
11831183
"CPU other than CPU0. Complain to your BIOS "
11841184
"vendor.\n");
1185-
goto err_out;
1185+
kfree(data);
1186+
return -ENODEV;
11861187
}
11871188
rc = find_psb_table(data);
11881189
if (rc) {
1189-
goto err_out;
1190+
kfree(data);
1191+
return -ENODEV;
11901192
}
11911193
/* Take a crude guess here.
11921194
* That guess was in microseconds, so multiply with 1000 */

0 commit comments

Comments
 (0)