Skip to content

Commit

Permalink
clockevent: export register_device and delta2ns
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Magnus Damm authored and Thomas Gleixner committed May 2, 2009
1 parent a52f5c5 commit c81fc2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/time/clockevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c81fc2c

Please sign in to comment.