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
f1d39e6e
Commit
f1d39e6e
authored
Feb 27, 2010
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: Loongson: Remove pointless sample_lock from oprofile code.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
36946d73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
arch/mips/oprofile/op_model_loongson2.c
arch/mips/oprofile/op_model_loongson2.c
+0
-7
No files found.
arch/mips/oprofile/op_model_loongson2.c
View file @
f1d39e6e
...
...
@@ -47,8 +47,6 @@ static struct loongson2_register_config {
int
cnt1_enabled
,
cnt2_enabled
;
}
reg
;
static
DEFINE_SPINLOCK
(
sample_lock
);
static
char
*
oprofid
=
"LoongsonPerf"
;
static
irqreturn_t
loongson2_perfcount_handler
(
int
irq
,
void
*
dev_id
);
/* Compute all of the registers in preparation for enabling profiling. */
...
...
@@ -115,7 +113,6 @@ static irqreturn_t loongson2_perfcount_handler(int irq, void *dev_id)
uint64_t
counter
,
counter1
,
counter2
;
struct
pt_regs
*
regs
=
get_irq_regs
();
int
enabled
;
unsigned
long
flags
;
/*
* LOONGSON2 defines two 32-bit performance counters.
...
...
@@ -136,8 +133,6 @@ static irqreturn_t loongson2_perfcount_handler(int irq, void *dev_id)
counter1
=
counter
&
0xffffffff
;
counter2
=
counter
>>
32
;
spin_lock_irqsave
(
&
sample_lock
,
flags
);
if
(
counter1
&
LOONGSON2_PERFCNT_OVERFLOW
)
{
if
(
reg
.
cnt1_enabled
)
oprofile_add_sample
(
regs
,
0
);
...
...
@@ -149,8 +144,6 @@ static irqreturn_t loongson2_perfcount_handler(int irq, void *dev_id)
counter2
=
reg
.
reset_counter2
;
}
spin_unlock_irqrestore
(
&
sample_lock
,
flags
);
write_c0_perfcnt
((
counter2
<<
32
)
|
counter1
);
return
IRQ_HANDLED
;
...
...
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