aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/clocksource.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/clocksource.h')
-rw-r--r--include/linux/clocksource.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index 278dd279a7a8..7784b597e959 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -246,16 +246,13 @@ extern int clocksource_i8253_init(void);
246#define CLOCKSOURCE_OF_DECLARE(name, compat, fn) \ 246#define CLOCKSOURCE_OF_DECLARE(name, compat, fn) \
247 OF_DECLARE_1(clksrc, name, compat, fn) 247 OF_DECLARE_1(clksrc, name, compat, fn)
248 248
249#ifdef CONFIG_CLKSRC_OF 249#ifdef CONFIG_CLKSRC_PROBE
250extern void clocksource_of_init(void); 250extern void clocksource_probe(void);
251#else 251#else
252static inline void clocksource_of_init(void) {} 252static inline void clocksource_probe(void) {}
253#endif 253#endif
254 254
255#ifdef CONFIG_ACPI 255#define CLOCKSOURCE_ACPI_DECLARE(name, table_id, fn) \
256void acpi_generic_timer_init(void); 256 ACPI_DECLARE_PROBE_ENTRY(clksrc, name, table_id, 0, NULL, 0, fn)
257#else
258static inline void acpi_generic_timer_init(void) { }
259#endif
260 257
261#endif /* _LINUX_CLOCKSOURCE_H */ 258#endif /* _LINUX_CLOCKSOURCE_H */