commit | ccbbfd1cbf365b38d014351d1482fedd26282041 | [log] [tgz] |
---|---|---|
author | Palmer Dabbelt <palmerdabbelt@google.com> | Wed Nov 25 11:57:03 2020 -0800 |
committer | Palmer Dabbelt <palmerdabbelt@google.com> | Thu Dec 10 17:39:43 2020 -0800 |
tree | 34d4ff092c563258d4c39e4655db47bf2adf51fe | |
parent | 30aca1bacb398dec6c1ed5eeca33f355bd7b6203 [diff] |
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>