diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2009-05-01 01:52:47 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-05-02 05:51:07 -0400 |
commit | c81fc2c331b8514ad112054cd2d87e6ec132286b (patch) | |
tree | e8b092222fd35c114a572272129d2eeb8f1e8238 /kernel/time/clockevents.c | |
parent | a52f5c5620673c292cb159205bf0e1eb5af1985b (diff) |
clockevent: export register_device and delta2ns
Export the following symbols using EXPORT_SYMBOL_GPL:
- clockevent_delta2ns
- clockevents_register_device
This allows us to build SuperH clockevent and clocksource
drivers as modules, see drivers/clocksource/sh_*.c
[ Impact: allow modular build of clockevent drivers ]
Signed-off-by: Magnus Damm <damm@igel.co.jp>
LKML-Reference: <20090501055247.8286.64067.sendpatchset@rx1.opensource.se>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/time/clockevents.c')
-rw-r--r-- | kernel/time/clockevents.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c index d13be216a790..3948fa644a2d 100644 --- a/kernel/time/clockevents.c +++ b/kernel/time/clockevents.c | |||
@@ -54,6 +54,7 @@ unsigned long clockevent_delta2ns(unsigned long latch, | |||
54 | 54 | ||
55 | return (unsigned long) clc; | 55 | return (unsigned long) clc; |
56 | } | 56 | } |
57 | EXPORT_SYMBOL_GPL(clockevent_delta2ns); | ||
57 | 58 | ||
58 | /** | 59 | /** |
59 | * clockevents_set_mode - set the operating mode of a clock event device | 60 | * clockevents_set_mode - set the operating mode of a clock event device |
@@ -187,6 +188,7 @@ void clockevents_register_device(struct clock_event_device *dev) | |||
187 | 188 | ||
188 | spin_unlock(&clockevents_lock); | 189 | spin_unlock(&clockevents_lock); |
189 | } | 190 | } |
191 | EXPORT_SYMBOL_GPL(clockevents_register_device); | ||
190 | 192 | ||
191 | /* | 193 | /* |
192 | * Noop handler when we shut down an event device | 194 | * Noop handler when we shut down an event device |