summaryrefslogtreecommitdiffstats
path: root/include/linux/clocksource.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/clocksource.h')
-rw-r--r--include/linux/clocksource.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index 81490456c242..a78cb1848e65 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -250,16 +250,19 @@ extern int clocksource_mmio_init(void __iomem *, const char *,
250 250
251extern int clocksource_i8253_init(void); 251extern int clocksource_i8253_init(void);
252 252
253#define TIMER_OF_DECLARE(name, compat, fn) \
254 OF_DECLARE_1_RET(timer, name, compat, fn)
255
253#define CLOCKSOURCE_OF_DECLARE(name, compat, fn) \ 256#define CLOCKSOURCE_OF_DECLARE(name, compat, fn) \
254 OF_DECLARE_1_RET(clksrc, name, compat, fn) 257 TIMER_OF_DECLARE(name, compat, fn)
255 258
256#ifdef CONFIG_CLKSRC_PROBE 259#ifdef CONFIG_TIMER_PROBE
257extern void clocksource_probe(void); 260extern void timer_probe(void);
258#else 261#else
259static inline void clocksource_probe(void) {} 262static inline void timer_probe(void) {}
260#endif 263#endif
261 264
262#define CLOCKSOURCE_ACPI_DECLARE(name, table_id, fn) \ 265#define TIMER_ACPI_DECLARE(name, table_id, fn) \
263 ACPI_DECLARE_PROBE_ENTRY(clksrc, name, table_id, 0, NULL, 0, fn) 266 ACPI_DECLARE_PROBE_ENTRY(timer, name, table_id, 0, NULL, 0, fn)
264 267
265#endif /* _LINUX_CLOCKSOURCE_H */ 268#endif /* _LINUX_CLOCKSOURCE_H */