Commit 968df33b authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[CPUFREQ] fix panic in powernow_k8_verify on MP but PSB systems.

Instead of -ENODEV; powernow_k8_cpu_init returns 0 if it's running on a MP
system but PSB BIOS is tried... this causes a panic in
powernow_k8_verify, as can be seen at
http://forums.gentoo.org/viewtopic.php?t=177423Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarDominik Brodowski <linux@brodo.de>
parent 2eb9a24d
...@@ -949,7 +949,7 @@ static int __init powernowk8_cpu_init(struct cpufreq_policy *pol) ...@@ -949,7 +949,7 @@ static int __init powernowk8_cpu_init(struct cpufreq_policy *pol)
if ((num_online_cpus() != 1) || (num_possible_cpus() != 1)) { if ((num_online_cpus() != 1) || (num_possible_cpus() != 1)) {
printk(KERN_INFO PFX "MP systems not supported by PSB BIOS structure\n"); printk(KERN_INFO PFX "MP systems not supported by PSB BIOS structure\n");
kfree(data); kfree(data);
return 0; return -ENODEV;
} }
rc = find_psb_table(data); rc = find_psb_table(data);
if (rc) { if (rc) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment