mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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>
This commit is contained in:
parent
4bde63286a
commit
4a41d5dbb0
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
typedef unsigned long cycles_t;
|
typedef unsigned long cycles_t;
|
||||||
|
|
||||||
static inline cycles_t get_cycles(void)
|
static inline cycles_t get_cycles_inline(void)
|
||||||
{
|
{
|
||||||
cycles_t n;
|
cycles_t n;
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ static inline cycles_t get_cycles(void)
|
||||||
: "=r" (n));
|
: "=r" (n));
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
#define get_cycles get_cycles_inline
|
||||||
|
|
||||||
#ifdef CONFIG_64BIT
|
#ifdef CONFIG_64BIT
|
||||||
static inline uint64_t get_cycles64(void)
|
static inline uint64_t get_cycles64(void)
|
||||||
|
|
Loading…
Reference in a new issue