drivers: timers: riscv: don't leak Kconfig symbols

Add if check around RISC-V machine specific kconfig symbols so they
aren't exposed to everyone.

Signed-off-by: Kumar Gala <kumar.gala@intel.com>
This commit is contained in:
Kumar Gala 2022-10-31 15:34:19 -05:00 committed by Stephanos Ioannidis
commit e11074d2a7

View file

@ -17,6 +17,8 @@ config RISCV_MACHINE_TIMER
This module implements a kernel device driver for the generic RISCV machine
timer driver. It provides the standard "system clock driver" interfaces.
if RISCV_MACHINE_TIMER
config RISCV_MACHINE_TIMER_SYSTEM_CLOCK_DIVIDER
int
default 0
@ -41,3 +43,5 @@ config RISCV_MACHINE_TIMER_MIN_DELAY
Specifies the minimum number of machine cycles before the RISC-V machine
time compare register is allowed to be updated by the RISC-V machine timer
driver.
endif