x86: Fix x86_model test in es7000_apic_is_cluster()
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 25 Aug 2009 13:35:12 +0000 (15:35 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 25 Aug 2009 13:58:12 +0000 (15:58 +0200)
For the x86_model to be greater than 6 or less than 12 is
logically always true.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/es7000_32.c

index 69328ac..420f95d 100644 (file)
@@ -167,7 +167,7 @@ static int es7000_apic_is_cluster(void)
 {
        /* MPENTIUMIII */
        if (boot_cpu_data.x86 == 6 &&
-           (boot_cpu_data.x86_model >= 7 || boot_cpu_data.x86_model <= 11))
+           (boot_cpu_data.x86_model >= 7 && boot_cpu_data.x86_model <= 11))
                return 1;
 
        return 0;