summaryrefslogtreecommitdiffstats
path: root/include/clocksource
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-04-23 17:46:24 +0200
committerOlof Johansson <olof@lixom.net>2013-04-28 12:16:46 -0700
commit7aac482e6290ab7ad21809e0c7327be959a2203e (patch)
tree79f8c75ef9cac0446cd595a5482fe9d56cdbe9c8 /include/clocksource
parent77d844344952934baf2902cf6f1ac870dc1b4d7a (diff)
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 <t.figa@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/clocksource')
-rw-r--r--include/clocksource/samsung_pwm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clocksource/samsung_pwm.h b/include/clocksource/samsung_pwm.h
index eff8668da25..399d2414734 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;