[PATCH v11 2/3] LoongArch: time: add timer_probe in time_init
From: Yinbo Zhu
Date: Mon Nov 28 2022 - 22:09:44 EST
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@xxxxxxxxxxx>
---
arch/loongarch/kernel/time.c | 1 +
1 file changed, 1 insertion(+)
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;
--
2.31.1