Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
e1a94a97
Commit
e1a94a97
authored
Feb 26, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: clean up cpu capabilities accesses, centaur.c
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
16282a8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
arch/x86/kernel/cpu/centaur.c
arch/x86/kernel/cpu/centaur.c
+7
-7
No files found.
arch/x86/kernel/cpu/centaur.c
View file @
e1a94a97
...
...
@@ -282,12 +282,12 @@ static void __cpuinit init_c3(struct cpuinfo_x86 *c)
rdmsr
(
MSR_VIA_FCR
,
lo
,
hi
);
lo
|=
(
1
<<
1
|
1
<<
7
);
wrmsr
(
MSR_VIA_FCR
,
lo
,
hi
);
set_
bit
(
X86_FEATURE_CX8
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_CX8
);
}
/* Before Nehemiah, the C3's had 3dNOW! */
if
(
c
->
x86_model
>=
6
&&
c
->
x86_model
<
9
)
set_
bit
(
X86_FEATURE_3DNOW
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_3DNOW
);
get_model_name
(
c
);
display_cacheinfo
(
c
);
...
...
@@ -327,7 +327,7 @@ static void __cpuinit init_centaur(struct cpuinfo_x86 *c)
* Bit 31 in normal CPUID used for nonstandard 3DNow ID;
* 3DNow is IDd by bit 31 in extended CPUID (1*32+31) anyway
*/
clear_
bit
(
0
*
32
+
31
,
c
->
x86_capability
);
clear_
cpu_cap
(
c
,
0
*
32
+
31
);
switch
(
c
->
x86
)
{
case
5
:
...
...
@@ -337,7 +337,7 @@ static void __cpuinit init_centaur(struct cpuinfo_x86 *c)
fcr_set
=
ECX8
|
DSMC
|
EDCTLB
|
EMMX
|
ERETSTK
;
fcr_clr
=
DPDC
;
printk
(
KERN_NOTICE
"Disabling bugged TSC.
\n
"
);
clear_
bit
(
X86_FEATURE_TSC
,
c
->
x86_capability
);
clear_
cpu_cap
(
c
,
X86_FEATURE_TSC
);
#ifdef CONFIG_X86_OOSTORE
centaur_create_optimal_mcr
();
/*
...
...
@@ -418,12 +418,12 @@ static void __cpuinit init_centaur(struct cpuinfo_x86 *c)
printk
(
KERN_INFO
"Centaur FCR is 0x%X
\n
"
,
lo
);
}
/* Emulate MTRRs using Centaur's MCR. */
set_
bit
(
X86_FEATURE_CENTAUR_MCR
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_CENTAUR_MCR
);
/* Report CX8 */
set_
bit
(
X86_FEATURE_CX8
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_CX8
);
/* Set 3DNow! on Winchip 2 and above. */
if
(
c
->
x86_model
>=
8
)
set_
bit
(
X86_FEATURE_3DNOW
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_3DNOW
);
/* See if we can find out some more. */
if
(
cpuid_eax
(
0x80000000
)
>=
0x80000005
)
{
/* Yes, we can. */
...
...
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