Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4c147101
Commit
4c147101
authored
Feb 12, 2003
by
Dave Jones
Committed by
Linus Torvalds
Feb 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] VIA C3 Nehemiah cachesize errata fix.
Whoops, VIA goofed, and it reports L2 size as 65KB.
parent
94bb74c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
arch/i386/kernel/cpu/centaur.c
arch/i386/kernel/cpu/centaur.c
+6
-0
No files found.
arch/i386/kernel/cpu/centaur.c
View file @
4c147101
...
@@ -408,6 +408,12 @@ static unsigned int centaur_size_cache(struct cpuinfo_x86 * c, unsigned int size
...
@@ -408,6 +408,12 @@ static unsigned int centaur_size_cache(struct cpuinfo_x86 * c, unsigned int size
/* VIA C3 CPUs (670-68F) need further shifting. */
/* VIA C3 CPUs (670-68F) need further shifting. */
if
((
c
->
x86
==
6
)
&&
((
c
->
x86_model
==
7
)
||
(
c
->
x86_model
==
8
)))
if
((
c
->
x86
==
6
)
&&
((
c
->
x86_model
==
7
)
||
(
c
->
x86_model
==
8
)))
size
>>=
8
;
size
>>=
8
;
/* VIA also screwed up Nehemiah stepping 1, and made
it return '65KB' instead of '64KB' */
if
((
c
->
x86
==
6
)
&&
(
c
->
x86_model
==
9
)
&&
(
c
->
x86_mask
==
1
))
size
-=
1
;
return
size
;
return
size
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment