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
9716951e
Commit
9716951e
authored
Feb 26, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: clean up cpu capabilities accesses, generic
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
0f8d2b92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/common.c
+1
-1
arch/x86/kernel/setup_64.c
arch/x86/kernel/setup_64.c
+3
-3
No files found.
arch/x86/kernel/cpu/common.c
View file @
9716951e
...
...
@@ -374,7 +374,7 @@ static void __cpuinit generic_identify(struct cpuinfo_x86 *c)
#else
c
->
apicid
=
(
ebx
>>
24
)
&
0xFF
;
#endif
if
(
c
->
x86_capability
[
0
]
&
(
1
<<
19
))
if
(
test_cpu_cap
(
c
,
X86_FEATURE_CLFLSH
))
c
->
x86_clflush_size
=
((
ebx
>>
8
)
&
0xff
)
*
8
;
}
else
{
/* Have CPUID level 0 only - unheard of */
...
...
arch/x86/kernel/setup_64.c
View file @
9716951e
...
...
@@ -687,7 +687,7 @@ static void __cpuinit init_amd(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
,
(
unsigned
long
*
)
&
c
->
x86_capability
);
clear_
cpu_cap
(
c
,
0
*
32
+
31
);
/* On C+ stepping K8 rep microcode works well for copy/memset */
level
=
cpuid_eax
(
1
);
...
...
@@ -823,7 +823,7 @@ static void __cpuinit early_init_intel(struct cpuinfo_x86 *c)
{
if
((
c
->
x86
==
0xf
&&
c
->
x86_model
>=
0x03
)
||
(
c
->
x86
==
0x6
&&
c
->
x86_model
>=
0x0e
))
set_
bit
(
X86_FEATURE_CONSTANT_TSC
,
&
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_CONSTANT_TSC
);
}
static
void
__cpuinit
init_intel
(
struct
cpuinfo_x86
*
c
)
...
...
@@ -929,7 +929,7 @@ static void __cpuinit early_identify_cpu(struct cpuinfo_x86 *c)
c
->
x86
+=
(
tfms
>>
20
)
&
0xff
;
if
(
c
->
x86
>=
0x6
)
c
->
x86_model
+=
((
tfms
>>
16
)
&
0xF
)
<<
4
;
if
(
c
->
x86_capability
[
0
]
&
(
1
<<
19
))
if
(
test_cpu_cap
(
c
,
X86_FEATURE_CLFLSH
))
c
->
x86_clflush_size
=
((
misc
>>
8
)
&
0xff
)
*
8
;
}
else
{
/* Have CPUID level 0 only - unheard of */
...
...
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