Thread (11 messages) 11 messages, 8 authors, 2019-04-03

[PATCH] arm: kernel: utilize hrtimer based broadcast

From: mark.rutland@arm.com (Mark Rutland)
Date: 2015-10-27 08:18:41
Also in: lkml

On Fri, Jul 17, 2015 at 10:11:52AM +0100, Alison Wang wrote:
Hrtimer based broadcast is used on ARM platform. It can be
registered as the tick broadcast device in the absence of
a real external clock device.

Signed-off-by: Alison Wang <redacted>
This looks sensible to me. FWIW:

Acked-by: Mark Rutland <mark.rutland@arm.com>

Thanks,
Mark.
quoted hunk ↗ jump to hunk
---
 arch/arm/kernel/time.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c
index a66e37e..a9bc73c 100644
--- a/arch/arm/kernel/time.c
+++ b/arch/arm/kernel/time.c
@@ -12,6 +12,7 @@
  *  reading the RTC at bootup, etc...
  */
 #include <linux/clk-provider.h>
+#include <linux/clockchips.h>
 #include <linux/clocksource.h>
 #include <linux/errno.h>
 #include <linux/export.h>
@@ -121,5 +122,7 @@ void __init time_init(void)
 		of_clk_init(NULL);
 #endif
 		clocksource_of_init();
+
+		tick_setup_hrtimer_broadcast();
 	}
 }
-- 
2.1.0.27.g96db324
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help