Commit 2d75a479 authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman

x86: Fix x86_model test in es7000_apic_is_cluster()

commit 005155b1 upstream.

For the x86_model to be greater than 6 or less than 12 is
logically always true.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4da07ab5
...@@ -167,7 +167,7 @@ static int es7000_apic_is_cluster(void) ...@@ -167,7 +167,7 @@ static int es7000_apic_is_cluster(void)
{ {
/* MPENTIUMIII */ /* MPENTIUMIII */
if (boot_cpu_data.x86 == 6 && 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 1;
return 0; return 0;
......
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