aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/clocksource.h
diff options
context:
space:
mode:
authorMarc Zyngier <Marc.Zyngier@arm.com>2015-09-28 15:49:15 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-10-01 02:18:38 +0200
commitc625f76a9910b9d51df5d6ca40a8da0684326996 (patch)
tree21750fd3b7b039d83a53d7e1f7254d6ae8810467 /include/linux/clocksource.h
parentirqchip / GIC: Convert the GIC driver to ACPI probing (diff)
downloadlinux-dev-c625f76a9910b9d51df5d6ca40a8da0684326996.tar.xz
linux-dev-c625f76a9910b9d51df5d6ca40a8da0684326996.zip
clocksource / ACPI: Add probing infrastructure for ACPI-based clocksources
DT enjoys a rather nice probing infrastructure for clocksources, while ACPI is so far stuck into a very distant past. This patch introduces a declarative API, allowing clocksources to be self-contained and be called when parsing the GTDT table. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/clocksource.h')
-rw-r--r--include/linux/clocksource.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index 278dd279a7a8..8cde04803d91 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -258,4 +258,7 @@ void acpi_generic_timer_init(void);
static inline void acpi_generic_timer_init(void) { }
#endif
+#define CLOCKSOURCE_ACPI_DECLARE(name, table_id, fn) \
+ ACPI_DECLARE_PROBE_ENTRY(clksrc, name, table_id, 0, NULL, 0, fn)
+
#endif /* _LINUX_CLOCKSOURCE_H */