[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20201009015906.1281-1-shipujin.t@gmail.com>
Date: Fri, 9 Oct 2020 09:59:06 +0800
From: Pujin Shi <shipujin.t@...il.com>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc: linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
Pujin Shi <shipujin.t@...il.com>
Subject: [PATCH] Input: joystick/analog - mips has get_cycles()
Fixes:
drivers/input/joystick/analog.c:160:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp]
Signed-off-by: Pujin Shi <shipujin.t@...il.com>
---
drivers/input/joystick/analog.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/input/joystick/analog.c b/drivers/input/joystick/analog.c
index 2b625ebef914..cdf54b5f519b 100644
--- a/drivers/input/joystick/analog.c
+++ b/drivers/input/joystick/analog.c
@@ -147,7 +147,8 @@ static unsigned int get_time_pit(void)
#define GET_TIME(x) do { x = (unsigned int)rdtsc(); } while (0)
#define DELTA(x,y) ((y)-(x))
#define TIME_NAME "TSC"
-#elif defined(__alpha__) || defined(CONFIG_ARM) || defined(CONFIG_ARM64) || defined(CONFIG_PPC) || defined(CONFIG_RISCV)
+#elif defined(__alpha__) || defined(CONFIG_ARM) || defined(CONFIG_ARM64) || \
+ defined(CONFIG_PPC) || defined(CONFIG_RISCV) || defined(CONFIG_MIPS)
#define GET_TIME(x) do { x = get_cycles(); } while (0)
#define DELTA(x,y) ((y)-(x))
#define TIME_NAME "get_cycles"
--
2.18.1
Powered by blists - more mailing lists