Skip to contentSkip to conversation

clockevent: export register_device and delta2ns

PATCH In review Magnus Damm 1 participant 2 messages May 1, 2009 – May 2, 2009 High-resolution timers, timer wheel, clockevents

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clockevent: export register_device and delta2ns

From: Magnus Damm <[email protected]>

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

---

 kernel/time/clockevents.c |    2 ++
 1 file changed, 2 insertions(+)
kernel/time/clockevents.c +2 -0
@@ -54,6 +54,7 @@ unsigned long clockevent_delta2ns(unsign
 
 	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 
 
 	spin_unlock(&clockevents_lock);
 }
+EXPORT_SYMBOL_GPL(clockevents_register_device);
 
 /*
  * Noop handler when we shut down an event device
#1 lore raw
Commit-ID:  c81fc2c331b8514ad112054cd2d87e6ec132286b
Gitweb:     http://git.kernel.org/tip/c81fc2c331b8514ad112054cd2d87e6ec132286b
Author:     Magnus Damm <[email protected]>
AuthorDate: Fri, 1 May 2009 14:52:47 +0900
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Sat, 2 May 2009 11:51:07 +0200

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 ]

LKML-Reference: <[email protected]>

---
 kernel/time/clockevents.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
kernel/time/clockevents.c +2 -0
index d13be21..3948fa6 100644
@@ -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