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
d20f24c6
Commit
d20f24c6
authored
Jan 11, 2009
by
Robert Richter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86/oprofile: simplify AMD cpu init code
Signed-off-by:
Robert Richter
<
robert.richter@amd.com
>
parent
90637595
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
arch/x86/oprofile/nmi_int.c
arch/x86/oprofile/nmi_int.c
+7
-8
No files found.
arch/x86/oprofile/nmi_int.c
View file @
d20f24c6
...
...
@@ -460,27 +460,26 @@ int __init op_nmi_init(struct oprofile_operations *ops)
/* Needs to be at least an Athlon (or hammer in 32bit mode) */
switch
(
family
)
{
default:
return
-
ENODEV
;
case
6
:
model
=
&
op_amd_spec
;
cpu_type
=
"i386/athlon"
;
break
;
case
0xf
:
model
=
&
op_amd_spec
;
/* Actually it could be i386/hammer too, but give
user space an consistent name. */
/*
* Actually it could be i386/hammer too, but
* give user space an consistent name.
*/
cpu_type
=
"x86-64/hammer"
;
break
;
case
0x10
:
model
=
&
op_amd_spec
;
cpu_type
=
"x86-64/family10"
;
break
;
case
0x11
:
model
=
&
op_amd_spec
;
cpu_type
=
"x86-64/family11h"
;
break
;
default:
return
-
ENODEV
;
}
model
=
&
op_amd_spec
;
break
;
case
X86_VENDOR_INTEL
:
...
...
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