| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | From 0f87c1dd8f10958121e10219c89e8d710babd1ce Mon Sep 17 00:00:00 2001 |
| 2 | From: Alison Wang <b18965@freescale.com> |
| 3 | Date: Fri, 17 Jul 2015 17:11:52 +0800 |
| 4 | Subject: [PATCH] arm: kernel: utilize hrtimer based broadcast |
| 5 | |
| 6 | Hrtimer based broadcast is used on ARM platform. It can be |
| 7 | registered as the tick broadcast device in the absence of |
| 8 | a real external clock device. |
| 9 | |
| 10 | Signed-off-by: Alison Wang <alison.wang@freescale.com> |
| 11 | Acked-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 | } |