Skip to contentSkip to conversation

clocksource: add empty version of clocksource_of_init

PATCH New Rob Herring 1 participant 1 message Mar 11, 2013 Timekeeping, clocksource core, NTP, alarmtimer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clocksource: add empty version of clocksource_of_init

From: Rob Herring <[email protected]>

Add an empty clocksource_of_init when !CLKSRC_OF. This is needed for builds where no timer has selected CLKSRC_OF.

Cc John Stultz <[email protected]>
Cc Thomas Gleixner <[email protected]>

---
This is part of my CLKSRC_OF init rework. It is also needed for Arnd's default machine patch. I plan to send a pull request to arm-soc for all this shortly.

Rob

 include/linux/clocksource.h |    1 +
 1 file changed, 1 insertion(+)
include/linux/clocksource.h +1 -0
index 27cfda4..08ed5e1 100644
@@ -340,6 +340,7 @@ extern void clocksource_of_init(void);
 		__used __section(__clksrc_of_table)			\
 		 = { .compatible = compat, .data = fn };
 #else
+static inline void clocksource_of_init(void) {}
 #define CLOCKSOURCE_OF_DECLARE(name, compat, fn)
 #endif
 
Signature · 1 line
1.7.10.4