Skip to content

Commit

Permalink
RISC-V: Use define for get_cycles like other architectures
Browse files Browse the repository at this point in the history
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
  • Loading branch information
Olof Johansson authored and Palmer Dabbelt committed Nov 30, 2017
1 parent 4bde632 commit 4a41d5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/riscv/include/asm/timex.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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)
Expand Down

0 comments on commit 4a41d5d

Please sign in to comment.