]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
clockevent: export register_device and delta2ns
authorMagnus Damm <magnus.damm@gmail.com>
Fri, 1 May 2009 05:52:47 +0000 (14:52 +0900)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 2 May 2009 09:51:07 +0000 (11:51 +0200)
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>
kernel/time/clockevents.c

index d13be216a7905d1a538286322c242726a1af3aba..3948fa644a2db6e42072f48828d9e1f199ce90e9 100644 (file)
@@ -54,6 +54,7 @@ unsigned long clockevent_delta2ns(unsigned long latch,
 
        return (unsigned long) clc;
 }
+EXPORT_SYMBOL_GPL(clockevent_delta2ns);
 
 /**
  * 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)
 
        spin_unlock(&clockevents_lock);
 }
+EXPORT_SYMBOL_GPL(clockevents_register_device);
 
 /*
  * Noop handler when we shut down an event device