summaryrefslogtreecommitdiffstats
path: root/arch/riscv/Kconfig
diff options
context:
space:
mode:
authorAnup Patel <anup@brainfault.org>2018-12-04 11:29:51 +0100
committerPalmer Dabbelt <palmer@sifive.com>2018-12-21 17:17:19 +0100
commit9b9afe4a0ef149db2472f13d6fa3c705d2867c9c (patch)
tree549d77afc060cc00d11c008892138ff647bfe11e /arch/riscv/Kconfig
parentRISC-V: lib: minor asm cleanup (diff)
downloadlinux-9b9afe4a0ef149db2472f13d6fa3c705d2867c9c.tar.xz
linux-9b9afe4a0ef149db2472f13d6fa3c705d2867c9c.zip
RISC-V: Select GENERIC_SCHED_CLOCK for clocksource drivers
The riscv_timer driver can provide sched_clock using "rdtime" instruction but to achieve this we require generic sched_clock framework hence this patch selects GENERIC_SCHED_CLOCK for RISCV. Signed-off-by: Anup Patel <anup@brainfault.org> Reviewed-by: Palmer Dabbelt <palmer@sifive.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to '')
-rw-r--r--arch/riscv/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 23ac6d6f9ab2..ee833e6f5ccb 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -24,6 +24,7 @@ config RISCV
select GENERIC_CPU_DEVICES
select GENERIC_IRQ_SHOW
select GENERIC_PCI_IOMAP
+ select GENERIC_SCHED_CLOCK
select GENERIC_STRNCPY_FROM_USER
select GENERIC_STRNLEN_USER
select GENERIC_SMP_IDLE_THREAD