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
34ee4148
Commit
34ee4148
authored
Feb 27, 2010
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: GT641xx: Convert timer lock to raw spinlock.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
da4afffc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
arch/mips/kernel/cevt-gt641xx.c
arch/mips/kernel/cevt-gt641xx.c
+5
-5
No files found.
arch/mips/kernel/cevt-gt641xx.c
View file @
34ee4148
...
...
@@ -25,7 +25,7 @@
#include <asm/gt64120.h>
#include <asm/time.h>
static
DEFINE_SPINLOCK
(
gt641xx_timer_lock
);
static
DEFINE_
RAW_
SPINLOCK
(
gt641xx_timer_lock
);
static
unsigned
int
gt641xx_base_clock
;
void
gt641xx_set_base_clock
(
unsigned
int
clock
)
...
...
@@ -49,7 +49,7 @@ static int gt641xx_timer0_set_next_event(unsigned long delta,
{
u32
ctrl
;
spin_lock
(
&
gt641xx_timer_lock
);
raw_
spin_lock
(
&
gt641xx_timer_lock
);
ctrl
=
GT_READ
(
GT_TC_CONTROL_OFS
);
ctrl
&=
~
(
GT_TC_CONTROL_ENTC0_MSK
|
GT_TC_CONTROL_SELTC0_MSK
);
...
...
@@ -58,7 +58,7 @@ static int gt641xx_timer0_set_next_event(unsigned long delta,
GT_WRITE
(
GT_TC0_OFS
,
delta
);
GT_WRITE
(
GT_TC_CONTROL_OFS
,
ctrl
);
spin_unlock
(
&
gt641xx_timer_lock
);
raw_
spin_unlock
(
&
gt641xx_timer_lock
);
return
0
;
}
...
...
@@ -68,7 +68,7 @@ static void gt641xx_timer0_set_mode(enum clock_event_mode mode,
{
u32
ctrl
;
spin_lock
(
&
gt641xx_timer_lock
);
raw_
spin_lock
(
&
gt641xx_timer_lock
);
ctrl
=
GT_READ
(
GT_TC_CONTROL_OFS
);
ctrl
&=
~
(
GT_TC_CONTROL_ENTC0_MSK
|
GT_TC_CONTROL_SELTC0_MSK
);
...
...
@@ -86,7 +86,7 @@ static void gt641xx_timer0_set_mode(enum clock_event_mode mode,
GT_WRITE
(
GT_TC_CONTROL_OFS
,
ctrl
);
spin_unlock
(
&
gt641xx_timer_lock
);
raw_
spin_unlock
(
&
gt641xx_timer_lock
);
}
static
void
gt641xx_timer0_event_handler
(
struct
clock_event_device
*
dev
)
...
...
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