Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a41d5db authored by Olof Johansson's avatar Olof Johansson Committed by Palmer Dabbelt
Browse files

RISC-V: Use define for get_cycles like other architectures

parent 4bde6328
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)