diff options
author | 2013-04-23 17:46:24 +0200 | |
---|---|---|
committer | 2013-04-28 12:16:46 -0700 | |
commit | 7aac482e6290ab7ad21809e0c7327be959a2203e (patch) | |
tree | 79f8c75ef9cac0446cd595a5482fe9d56cdbe9c8 /include/clocksource | |
parent | clocksource: samsung_pwm_timer: Let platforms select the driver (diff) | |
download | wireguard-linux-7aac482e6290ab7ad21809e0c7327be959a2203e.tar.xz wireguard-linux-7aac482e6290ab7ad21809e0c7327be959a2203e.zip |
clocksource: samsung_pwm_timer: Make PWM spinlock global
This patch makes the PWM spinlock global and exports it to allow using
it in Samsung PWM driver (will be reworked to use proper synchronization
in further patches).
Signed-off-by: Tomasz Figa <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Acked-by: Kukjin Kim <[email protected]>
Signed-off-by: Olof Johansson <[email protected]>
Diffstat (limited to 'include/clocksource')
-rw-r--r-- | include/clocksource/samsung_pwm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clocksource/samsung_pwm.h b/include/clocksource/samsung_pwm.h index eff8668da252..399d2414734f 100644 --- a/include/clocksource/samsung_pwm.h +++ b/include/clocksource/samsung_pwm.h @@ -23,6 +23,8 @@ struct platform_device; struct device_node; +extern spinlock_t samsung_pwm_lock; + struct samsung_pwm_variant { u8 bits; u8 div_base; |