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
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)
...
@@ -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) */
/* Needs to be at least an Athlon (or hammer in 32bit mode) */
switch
(
family
)
{
switch
(
family
)
{
default:
return
-
ENODEV
;
case
6
:
case
6
:
model
=
&
op_amd_spec
;
cpu_type
=
"i386/athlon"
;
cpu_type
=
"i386/athlon"
;
break
;
break
;
case
0xf
:
case
0xf
:
model
=
&
op_amd_spec
;
/*
/* Actually it could be i386/hammer too, but give
* Actually it could be i386/hammer too, but
user space an consistent name. */
* give user space an consistent name.
*/
cpu_type
=
"x86-64/hammer"
;
cpu_type
=
"x86-64/hammer"
;
break
;
break
;
case
0x10
:
case
0x10
:
model
=
&
op_amd_spec
;
cpu_type
=
"x86-64/family10"
;
cpu_type
=
"x86-64/family10"
;
break
;
break
;
case
0x11
:
case
0x11
:
model
=
&
op_amd_spec
;
cpu_type
=
"x86-64/family11h"
;
cpu_type
=
"x86-64/family11h"
;
break
;
break
;
default:
return
-
ENODEV
;
}
}
model
=
&
op_amd_spec
;
break
;
break
;
case
X86_VENDOR_INTEL
:
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