blob: 8b9c25d0dc92b8d0872c4963678e1e2b7711044a [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 0f87c1dd8f10958121e10219c89e8d710babd1ce Mon Sep 17 00:00:00 2001
2From: Alison Wang <b18965@freescale.com>
3Date: Fri, 17 Jul 2015 17:11:52 +0800
4Subject: [PATCH] arm: kernel: utilize hrtimer based broadcast
5
6Hrtimer based broadcast is used on ARM platform. It can be
7registered as the tick broadcast device in the absence of
8a real external clock device.
9
10Signed-off-by: Alison Wang <alison.wang@freescale.com>
11Acked-by: Mark Rutland <mark.rutland@arm.com>
12---
13 arch/arm/kernel/time.c | 3 +++
14 1 file changed, 3 insertions(+)
15
16--- a/arch/arm/kernel/time.c
17+++ b/arch/arm/kernel/time.c
18@@ -9,6 +9,7 @@
19 * reading the RTC at bootup, etc...
20 */
21 #include <linux/clk-provider.h>
22+#include <linux/clockchips.h>
23 #include <linux/clocksource.h>
24 #include <linux/errno.h>
25 #include <linux/export.h>
26@@ -107,5 +108,7 @@ void __init time_init(void)
27 of_clk_init(NULL);
28 #endif
29 timer_probe();
30+
31+ tick_setup_hrtimer_broadcast();
32 }
33 }