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
2065988e
Commit
2065988e
authored
Dec 09, 2005
by
Ralf Baechle
Committed by
Jan 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: Oprofile: Add 5K, 20K and 25K support.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
9efeae9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
arch/mips/oprofile/common.c
arch/mips/oprofile/common.c
+3
-0
arch/mips/oprofile/op_model_mipsxx.c
arch/mips/oprofile/op_model_mipsxx.c
+12
-0
No files found.
arch/mips/oprofile/common.c
View file @
2065988e
...
...
@@ -75,7 +75,10 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
int
res
;
switch
(
current_cpu_data
.
cputype
)
{
case
CPU_5KC
:
case
CPU_20KC
:
case
CPU_24K
:
case
CPU_25KF
:
lmodel
=
&
op_model_mipsxx
;
break
;
...
...
arch/mips/oprofile/op_model_mipsxx.c
View file @
2065988e
...
...
@@ -189,10 +189,22 @@ static int __init mipsxx_init(void)
op_model_mipsxx
.
num_counters
=
counters
;
switch
(
current_cpu_data
.
cputype
)
{
case
CPU_20KC
:
op_model_mipsxx
.
cpu_type
=
"mips/20K"
;
break
;
case
CPU_24K
:
op_model_mipsxx
.
cpu_type
=
"mips/24K"
;
break
;
case
CPU_25KF
:
op_model_mipsxx
.
cpu_type
=
"mips/25K"
;
break
;
case
CPU_5KC
:
op_model_mipsxx
.
cpu_type
=
"mips/5K"
;
break
;
default:
printk
(
KERN_ERR
"Profiling unsupported for this CPU
\n
"
);
...
...
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