RISC-V: Define get_cycles64() regardless of M-mode
authorPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 25 Nov 2020 19:57:03 +0000 (11:57 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 11 Dec 2020 01:39:43 +0000 (17:39 -0800)
commitccbbfd1cbf365b38d014351d1482fedd26282041
tree34d4ff092c563258d4c39e4655db47bf2adf51fe
parent30aca1bacb398dec6c1ed5eeca33f355bd7b6203
RISC-V: Define get_cycles64() regardless of M-mode

The timer driver uses get_cycles64() unconditionally to obtain the current
time.  A recent refactoring lost the common definition for some configs, which
is now the only one we need.

Fixes: d5be89a8d118 ("RISC-V: Resurrect the MMIO timer implementation for M-mode systems")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/timex.h