Skip to content

Commit

Permalink
clockevents: Make clockevents_config() a global symbol
Browse files Browse the repository at this point in the history
Make clockevents_config() into a global symbol to allow it to be used
by compiled-in clockevent drivers. This is needed by drivers that want
to update the timer frequency after registration time.

Signed-off-by: Magnus Damm <damm@opensource.se>
Tested-by: Simon Horman <horms@verge.net.au>
Cc: arnd@arndb.de
Cc: johnstul@us.ibm.com
Cc: rjw@sisk.pl
Cc: lethal@linux-sh.org
Cc: gregkh@linuxfoundation.org
Cc: olof@lixom.net
Cc: Magnus Damm <magnus.damm@gmail.com>
Link: http://lkml.kernel.org/r/20120509143934.27521.46553.sendpatchset@w520
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Magnus Damm authored and Thomas Gleixner committed May 24, 2012
1 parent 5307c95 commit e540032
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions include/linux/clockchips.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ extern u64 clockevent_delta2ns(unsigned long latch,
struct clock_event_device *evt);
extern void clockevents_register_device(struct clock_event_device *dev);

extern void clockevents_config(struct clock_event_device *dev, u32 freq);
extern void clockevents_config_and_register(struct clock_event_device *dev,
u32 freq, unsigned long min_delta,
unsigned long max_delta);
Expand Down
3 changes: 1 addition & 2 deletions kernel/time/clockevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ void clockevents_register_device(struct clock_event_device *dev)
}
EXPORT_SYMBOL_GPL(clockevents_register_device);

static void clockevents_config(struct clock_event_device *dev,
u32 freq)
void clockevents_config(struct clock_event_device *dev, u32 freq)
{
u64 sec;

Expand Down

0 comments on commit e540032

Please sign in to comment.