diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2015-03-24 10:02:50 -0400 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-03-26 11:13:07 -0400 |
commit | b09ca1ecf6d499d5a33f978c905d2fbcc79b55d9 (patch) | |
tree | a9b807414433367bcf647a38d7d3e5623e236ace /include/linux/clocksource.h | |
parent | d60fc3892c4de4a25658786f941690462c5a5bab (diff) |
clocksource / arch_timer: Parse GTDT to initialize arch timer
Using the information presented by GTDT (Generic Timer Description Table)
to initialize the arch timer (not memory-mapped).
CC: Daniel Lezcano <daniel.lezcano@linaro.org>
CC: Thomas Gleixner <tglx@linutronix.de>
Originally-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Tested-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Tested-by: Yijing Wang <wangyijing@huawei.com>
Tested-by: Mark Langsdorf <mlangsdo@redhat.com>
Tested-by: Jon Masters <jcm@redhat.com>
Tested-by: Timur Tabi <timur@codeaurora.org>
Tested-by: Robert Richter <rrichter@cavium.com>
Acked-by: Robert Richter <rrichter@cavium.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'include/linux/clocksource.h')
-rw-r--r-- | include/linux/clocksource.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 9c78d15d33e4..2b2e1f80c519 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h | |||
@@ -244,4 +244,10 @@ extern void clocksource_of_init(void); | |||
244 | static inline void clocksource_of_init(void) {} | 244 | static inline void clocksource_of_init(void) {} |
245 | #endif | 245 | #endif |
246 | 246 | ||
247 | #ifdef CONFIG_ACPI | ||
248 | void acpi_generic_timer_init(void); | ||
249 | #else | ||
250 | static inline void acpi_generic_timer_init(void) { } | ||
251 | #endif | ||
252 | |||
247 | #endif /* _LINUX_CLOCKSOURCE_H */ | 253 | #endif /* _LINUX_CLOCKSOURCE_H */ |