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
nexedi
linux
Commits
d0e95ebd
Commit
d0e95ebd
authored
Feb 26, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: clean up cpu capabilities in arch/x86/kernel/cpu/intel.c
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
1d007cd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
arch/x86/kernel/cpu/intel.c
arch/x86/kernel/cpu/intel.c
+7
-7
No files found.
arch/x86/kernel/cpu/intel.c
View file @
d0e95ebd
...
...
@@ -143,12 +143,12 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
unsigned
eax
=
cpuid_eax
(
10
);
/* Check for version and the number of counters */
if
((
eax
&
0xff
)
&&
(((
eax
>>
8
)
&
0xff
)
>
1
))
set_
bit
(
X86_FEATURE_ARCH_PERFMON
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_ARCH_PERFMON
);
}
/* SEP CPUID bug: Pentium Pro reports SEP but doesn't have it until model 3 mask 3 */
if
((
c
->
x86
<<
8
|
c
->
x86_model
<<
4
|
c
->
x86_mask
)
<
0x633
)
clear_
bit
(
X86_FEATURE_SEP
,
c
->
x86_capability
);
clear_
cpu_cap
(
c
,
X86_FEATURE_SEP
);
/*
* Names for the Pentium II/Celeron processors
...
...
@@ -209,19 +209,19 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
#endif
if
(
cpu_has_xmm2
)
set_
bit
(
X86_FEATURE_LFENCE_RDTSC
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_LFENCE_RDTSC
);
if
(
c
->
x86
==
15
)
{
set_
bit
(
X86_FEATURE_P4
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_P4
);
}
if
(
c
->
x86
==
6
)
set_
bit
(
X86_FEATURE_P3
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_P3
);
if
(
cpu_has_ds
)
{
unsigned
int
l1
;
rdmsr
(
MSR_IA32_MISC_ENABLE
,
l1
,
l2
);
if
(
!
(
l1
&
(
1
<<
11
)))
set_
bit
(
X86_FEATURE_BTS
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_BTS
);
if
(
!
(
l1
&
(
1
<<
12
)))
set_
bit
(
X86_FEATURE_PEBS
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_PEBS
);
}
if
(
cpu_has_bts
)
...
...
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