]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Fix powernow-k8 SMP kernel on UP hardware bug.
authorRandy Dunlap <randy.dunlap@oracle.com>
Fri, 23 Jun 2006 06:10:01 +0000 (06:10 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 25 Jul 2006 03:35:23 +0000 (20:35 -0700)
[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 <bcollins@ubuntu.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/i386/kernel/cpu/cpufreq/powernow-k8.c

index 71fffa17442530949dccf45aa210c2e371188a59..2ea3c6cacab97c57e2a8d89a7f3e044629726171 100644 (file)
@@ -1008,7 +1008,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;