diff options
author | Olof Johansson <olof@lixom.net> | 2017-11-29 17:55:18 -0800 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2017-11-30 10:12:21 -0800 |
commit | 4a41d5dbb0bbd0c3faffb2ccd8ef1a7aeb12f978 (patch) | |
tree | 7be1afce63369d5a6caf0ff85e15af36b7b53dc0 /arch/riscv | |
parent | 4bde63286a6c7c76fe05ff0e03ad253f5260b104 (diff) | |
download | lwn-4a41d5dbb0bbd0c3faffb2ccd8ef1a7aeb12f978.tar.gz lwn-4a41d5dbb0bbd0c3faffb2ccd8ef1a7aeb12f978.zip |
RISC-V: Use define for get_cycles like other architectures
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/include/asm/timex.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/timex.h b/arch/riscv/include/asm/timex.h index 3df4932d8964..2f26989cb864 100644 --- a/arch/riscv/include/asm/timex.h +++ b/arch/riscv/include/asm/timex.h @@ -18,7 +18,7 @@ typedef unsigned long cycles_t; -static inline cycles_t get_cycles(void) +static inline cycles_t get_cycles_inline(void) { cycles_t n; @@ -27,6 +27,7 @@ static inline cycles_t get_cycles(void) : "=r" (n)); return n; } +#define get_cycles get_cycles_inline #ifdef CONFIG_64BIT static inline uint64_t get_cycles64(void) |