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
c2225a57
Commit
c2225a57
authored
May 25, 2012
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clocksource: sh_tmu: Convert timer lock to raw spinlock.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
50393a92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/clocksource/sh_tmu.c
drivers/clocksource/sh_tmu.c
+3
-3
No files found.
drivers/clocksource/sh_tmu.c
View file @
c2225a57
...
...
@@ -45,7 +45,7 @@ struct sh_tmu_priv {
struct
clocksource
cs
;
};
static
DEFINE_SPINLOCK
(
sh_tmu_lock
);
static
DEFINE_
RAW_
SPINLOCK
(
sh_tmu_lock
);
#define TSTR -1
/* shared register */
#define TCOR 0
/* channel register */
...
...
@@ -95,7 +95,7 @@ static void sh_tmu_start_stop_ch(struct sh_tmu_priv *p, int start)
unsigned
long
flags
,
value
;
/* start stop register shared by multiple timer channels */
spin_lock_irqsave
(
&
sh_tmu_lock
,
flags
);
raw_
spin_lock_irqsave
(
&
sh_tmu_lock
,
flags
);
value
=
sh_tmu_read
(
p
,
TSTR
);
if
(
start
)
...
...
@@ -104,7 +104,7 @@ static void sh_tmu_start_stop_ch(struct sh_tmu_priv *p, int start)
value
&=
~
(
1
<<
cfg
->
timer_bit
);
sh_tmu_write
(
p
,
TSTR
,
value
);
spin_unlock_irqrestore
(
&
sh_tmu_lock
,
flags
);
raw_
spin_unlock_irqrestore
(
&
sh_tmu_lock
,
flags
);
}
static
int
sh_tmu_enable
(
struct
sh_tmu_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