Input: joystick/analog - mips has get_cycles()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/input/joystick/analog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/input/joystick/analog.c +2 -1
@@ -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"
Signature · 1 line
2.18.1