Commit edf18527 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] VIA Nehemiah cache workaround.

It turns out that this bug is only on the pre-production models,
but as a few of them have 'escaped' the labs to the hands of
a few lucky developers, we still need it.
parent 9b4c1048
...@@ -412,8 +412,9 @@ static unsigned int centaur_size_cache(struct cpuinfo_x86 * c, unsigned int size ...@@ -412,8 +412,9 @@ static unsigned int centaur_size_cache(struct cpuinfo_x86 * c, unsigned int size
size >>= 8; size >>= 8;
/* VIA also screwed up Nehemiah stepping 1, and made /* VIA also screwed up Nehemiah stepping 1, and made
it return '65KB' instead of '64KB' */ it return '65KB' instead of '64KB'
if ((c->x86==6) && (c->x86_model==9) && (c->x86_mask==1)) - Note, it seems this may only be in engineering samples. */
if ((c->x86==6) && (c->x86_model==9) && (c->x86_mask==1) && (size==65))
size -=1; size -=1;
return size; return size;
......
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