Timer for the RISC-V platform

modulename: timer-riscv.ko

configname: CONFIG_RISCV_TIMER

Linux Kernel Configuration
└─>Device Drivers
└─>Clock Source drivers
└─>Timer for the RISC-V platform
In linux kernel since version 4.2 (release Date: 2015-08-30)  
This enables the per-hart timer built into all RISC-V systems, which
is accessed via both the SBI and the rdcycle instruction. This is
required for all RISC-V systems.

source code:

depends
CONFIG_GENERIC_CLOCKEVENTS
CONFIG_GENERIC_SCHED_CLOCK
CONFIG_RISCV
CONFIG_RISCV_SBI