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
50393a92
Commit
50393a92
authored
May 25, 2012
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clocksource: sh_mtu2: Convert timer lock to raw spinlock.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
7d0c399f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/clocksource/sh_mtu2.c
drivers/clocksource/sh_mtu2.c
+3
-3
No files found.
drivers/clocksource/sh_mtu2.c
View file @
50393a92
...
...
@@ -43,7 +43,7 @@ struct sh_mtu2_priv {
struct
clock_event_device
ced
;
};
static
DEFINE_SPINLOCK
(
sh_mtu2_lock
);
static
DEFINE_
RAW_
SPINLOCK
(
sh_mtu2_lock
);
#define TSTR -1
/* shared register */
#define TCR 0
/* channel register */
...
...
@@ -107,7 +107,7 @@ static void sh_mtu2_start_stop_ch(struct sh_mtu2_priv *p, int start)
unsigned
long
flags
,
value
;
/* start stop register shared by multiple timer channels */
spin_lock_irqsave
(
&
sh_mtu2_lock
,
flags
);
raw_
spin_lock_irqsave
(
&
sh_mtu2_lock
,
flags
);
value
=
sh_mtu2_read
(
p
,
TSTR
);
if
(
start
)
...
...
@@ -116,7 +116,7 @@ static void sh_mtu2_start_stop_ch(struct sh_mtu2_priv *p, int start)
value
&=
~
(
1
<<
cfg
->
timer_bit
);
sh_mtu2_write
(
p
,
TSTR
,
value
);
spin_unlock_irqrestore
(
&
sh_mtu2_lock
,
flags
);
raw_
spin_unlock_irqrestore
(
&
sh_mtu2_lock
,
flags
);
}
static
int
sh_mtu2_enable
(
struct
sh_mtu2_priv
*
p
)
...
...
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