Commit 6f737f5f authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] Cleanup SEP errata workaround.

This looks a little simpler, and has the same effect.
parent 694acdcd
...@@ -238,12 +238,9 @@ static void __init init_intel(struct cpuinfo_x86 *c) ...@@ -238,12 +238,9 @@ static void __init init_intel(struct cpuinfo_x86 *c)
} }
/* SEP CPUID bug: Pentium Pro reports SEP but doesn't have it until model 3 mask 3 */ /* SEP CPUID bug: Pentium Pro reports SEP but doesn't have it until model 3 mask 3 */
if ( c->x86 == 6) { if ((c->x86<<8 | c->x86_model<<4 | c->x86_mask) < 0x633)
unsigned model_mask = (c->x86_model << 8) + c->x86_mask; clear_bit(X86_FEATURE_SEP, c->x86_capability);
if (model_mask < 0x0303)
clear_bit(X86_FEATURE_SEP, c->x86_capability);
}
/* Names for the Pentium II/Celeron processors /* Names for the Pentium II/Celeron processors
detectable only by also checking the cache size. detectable only by also checking the cache size.
Dixon is NOT a Celeron. */ Dixon is NOT a Celeron. */
......
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