[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171130015521.1289-8-olof@lixom.net>
Date: Wed, 29 Nov 2017 17:55:18 -0800
From: Olof Johansson <olof@...om.net>
To: Palmer Dabbelt <palmer@...ive.com>
Cc: Albert Ou <albert@...ive.com>, patches@...ups.riscv.org,
linux-kernel@...r.kernel.org, Olof Johansson <olof@...om.net>
Subject: [PATCH 07/10] RISC-V: Use define for get_cycles like other architectures
Signed-off-by: Olof Johansson <olof@...om.net>
---
arch/riscv/include/asm/timex.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/riscv/include/asm/timex.h b/arch/riscv/include/asm/timex.h
index 3df4932..2f26989 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)
--
2.8.6
Powered by blists - more mailing lists