]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Fix kernel time_init()
authorDamien Le Moal <damien.lemoal@wdc.com>
Sun, 13 Dec 2020 13:50:34 +0000 (22:50 +0900)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 8 Jan 2021 02:01:36 +0000 (18:01 -0800)
commitd22442ceaf68b0b8b80a2e4acbe29821fb0a66f1
tree8c4d90c3ba0821e14e37d06d20db02e7db7745d7
parentd9453ab0707d69aed4cf9c515da03bb1415207a2
riscv: Fix kernel time_init()

If of_clk_init() is not called in time_init(), clock providers defined
in the system device tree are not initialized, resulting in failures for
other devices to initialize due to missing clocks.
Similarly to other architectures and to the default kernel time_init()
implementation, call of_clk_init() before executing timer_probe() in
time_init().

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/time.c