From: Randy Dunlap Date: Tue, 7 Nov 2006 14:15:04 +0000 (+0100) Subject: [CPUFREQ] Fix powernow-k8 SMP kernel on UP hardware bug. X-Git-Tag: v2.6.16.32-rc1~31 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6f5bccdd4fcebf5edc3cd3ff3e68417a0dbe9f2b;p=karo-tx-linux.git [CPUFREQ] Fix powernow-k8 SMP kernel on UP hardware bug. Fix powernow-k8 doesn't load bug. Reference: https://launchpad.net/distros/ubuntu/+source/linux-source-2.6.15/+bug/35145 Signed-off-by: Ben Collins Signed-off-by: Dave Jones --- diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c index e11a09207ec8..c2719ab69342 100644 --- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c @@ -1006,7 +1006,7 @@ static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol) * an UP version, and is deprecated by AMD. */ - if ((num_online_cpus() != 1) || (num_possible_cpus() != 1)) { + if (num_online_cpus() != 1) { printk(KERN_ERR PFX "MP systems not supported by PSB BIOS structure\n"); kfree(data); return -ENODEV;