Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clocksource/drivers/riscv: Make RISCV_TIMER depends on RISCV_SBI

The riscv timer is set via SBI timer call, let's make RISCV_TIMER
depends on RISCV_SBI, and it also fixes some build issue.

Fixes: d5be89a8d118 ("RISC-V: Resurrect the MMIO timer implementation for M-mode systems")
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201028131230.72907-1-wangkefeng.wang@huawei.com

authored by

Kefeng Wang and committed by
Daniel Lezcano
ab310544 5bd7cb29

+1 -1
+1 -1
drivers/clocksource/Kconfig
··· 644 644 645 645 config RISCV_TIMER 646 646 bool "Timer for the RISC-V platform" if COMPILE_TEST 647 - depends on GENERIC_SCHED_CLOCK && RISCV 647 + depends on GENERIC_SCHED_CLOCK && RISCV && RISCV_SBI 648 648 select TIMER_PROBE 649 649 select TIMER_OF 650 650 help