aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanjun Guo <hanjun.guo@linaro.org>2014-01-17 20:25:14 +0800
committerGraeme Gregory <graeme.gregory@linaro.org>2014-06-03 09:24:13 +0100
commit5593effc38aeb7942274cda2562bc7b97add1196 (patch)
treee66c2f6436361741dc0d6ec4dbb46d45f8e5789d
parent7f4352e1aee69d03c1ddbe35db27a843f40c062c (diff)
downloadleg-kernel-5593effc38aeb7942274cda2562bc7b97add1196.tar.gz
ARM64 / clocksource: Use clocksource_acpi_init()
Use clocksource_acpi_init() on ARM64 to initialise timers in ACPI way when DT is not available. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
-rw-r--r--arch/arm64/kernel/time.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/kernel/time.c b/arch/arm64/kernel/time.c
index 6815987b50f8..0bfc70edc18e 100644
--- a/arch/arm64/kernel/time.c
+++ b/arch/arm64/kernel/time.c
@@ -69,6 +69,12 @@ void __init time_init(void)
of_clk_init(NULL);
clocksource_of_init();
+ /*
+ * Since ACPI or FDT will only one be available in the system,
+ * we can use clocksource_acpi_init() here safely
+ */
+ clocksource_acpi_init();
+
arch_timer_rate = arch_timer_get_rate();
if (!arch_timer_rate)
panic("Unable to initialise architected timer.\n");