diff options
| author | Paul Mundt <lethal@linux-sh.org> | 2012-05-25 00:39:09 -0400 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2012-06-11 03:01:48 -0400 |
| commit | c2225a57e596a308424e59abc7e864f866fe4493 (patch) | |
| tree | c596084bd22e833a892c4c3760e58622f8d543ad /drivers | |
| parent | 50393a92c89c603e2d043c9f0212d3bd66701c86 (diff) | |
clocksource: sh_tmu: Convert timer lock to raw spinlock.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/clocksource/sh_tmu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index 97f54b634be4..852b3f19a555 100644 --- a/drivers/clocksource/sh_tmu.c +++ b/drivers/clocksource/sh_tmu.c | |||
| @@ -45,7 +45,7 @@ struct sh_tmu_priv { | |||
| 45 | struct clocksource cs; | 45 | struct clocksource cs; |
| 46 | }; | 46 | }; |
| 47 | 47 | ||
| 48 | static DEFINE_SPINLOCK(sh_tmu_lock); | 48 | static DEFINE_RAW_SPINLOCK(sh_tmu_lock); |
| 49 | 49 | ||
| 50 | #define TSTR -1 /* shared register */ | 50 | #define TSTR -1 /* shared register */ |
| 51 | #define TCOR 0 /* channel register */ | 51 | #define TCOR 0 /* channel register */ |
| @@ -95,7 +95,7 @@ static void sh_tmu_start_stop_ch(struct sh_tmu_priv *p, int start) | |||
| 95 | unsigned long flags, value; | 95 | unsigned long flags, value; |
| 96 | 96 | ||
| 97 | /* start stop register shared by multiple timer channels */ | 97 | /* start stop register shared by multiple timer channels */ |
| 98 | spin_lock_irqsave(&sh_tmu_lock, flags); | 98 | raw_spin_lock_irqsave(&sh_tmu_lock, flags); |
| 99 | value = sh_tmu_read(p, TSTR); | 99 | value = sh_tmu_read(p, TSTR); |
| 100 | 100 | ||
| 101 | if (start) | 101 | if (start) |
| @@ -104,7 +104,7 @@ static void sh_tmu_start_stop_ch(struct sh_tmu_priv *p, int start) | |||
| 104 | value &= ~(1 << cfg->timer_bit); | 104 | value &= ~(1 << cfg->timer_bit); |
| 105 | 105 | ||
| 106 | sh_tmu_write(p, TSTR, value); | 106 | sh_tmu_write(p, TSTR, value); |
| 107 | spin_unlock_irqrestore(&sh_tmu_lock, flags); | 107 | raw_spin_unlock_irqrestore(&sh_tmu_lock, flags); |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | static int sh_tmu_enable(struct sh_tmu_priv *p) | 110 | static int sh_tmu_enable(struct sh_tmu_priv *p) |
