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

Commit c9ab8001 authored by Michael Ellerman's avatar Michael Ellerman Committed by Dmitry Torokhov
Browse files

Input: analog - use get_cycles() on PPC



The analog joystick driver spits a warning at us:

  drivers/input/joystick/analog.c:176:2: warning: #warning Precise timer
  not defined for this architecture.

PPC has get_cycles() so use that.

Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 1c4bfce1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -163,7 +163,7 @@ static unsigned int get_time_pit(void)
#define GET_TIME(x)	do { x = (unsigned int)rdtsc(); } while (0)
#define GET_TIME(x)	do { x = (unsigned int)rdtsc(); } while (0)
#define DELTA(x,y)	((y)-(x))
#define DELTA(x,y)	((y)-(x))
#define TIME_NAME	"TSC"
#define TIME_NAME	"TSC"
#elif defined(__alpha__) || defined(CONFIG_MN10300) || defined(CONFIG_ARM) || defined(CONFIG_ARM64) || defined(CONFIG_RISCV) || defined(CONFIG_TILE)
#elif defined(__alpha__) || defined(CONFIG_MN10300) || defined(CONFIG_ARM) || defined(CONFIG_ARM64) || defined(CONFIG_PPC) || defined(CONFIG_RISCV) || defined(CONFIG_TILE)
#define GET_TIME(x)	do { x = get_cycles(); } while (0)
#define GET_TIME(x)	do { x = get_cycles(); } while (0)
#define DELTA(x,y)	((y)-(x))
#define DELTA(x,y)	((y)-(x))
#define TIME_NAME	"get_cycles"
#define TIME_NAME	"get_cycles"