[v11,2/3] LoongArch: time: add timer_probe in time_init

Message ID 20221129030925.14074-2-zhuyinbo@loongson.cn
State New
Headers
Series [v11,1/3] clocksource: loongson2_hpet: add hpet driver support |

Commit Message

Yinbo Zhu Nov. 29, 2022, 3:09 a.m. UTC
  The Loongson-2 hpet clocksource driver used TIMER_OF_DECLARE to
register clocksource subsystem that ask timer_probe was called
in time_init and this patch was to addd such support.

Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn>
---
 arch/loongarch/kernel/time.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/arch/loongarch/kernel/time.c b/arch/loongarch/kernel/time.c
index 09f20bc81798..658c1fcce4c7 100644
--- a/arch/loongarch/kernel/time.c
+++ b/arch/loongarch/kernel/time.c
@@ -216,6 +216,7 @@  int __init constant_clocksource_init(void)
 void __init time_init(void)
 {
 	of_clk_init(NULL);
+	timer_probe();
 
 	if (!cpu_has_cpucfg)
 		const_clock_freq = cpu_clock_freq;