summaryrefslogtreecommitdiffstats
path: root/drivers/input/joystick
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2013-02-01 12:59:36 -0500
committerChris Metcalf <cmetcalf@tilera.com>2013-02-04 12:53:12 -0500
commit84e4e46020cdb0e091858eb8263a2287880e2bad (patch)
tree09a5bdd2d97bf270c325001d4bd9494e62d8cc45 /drivers/input/joystick
parent99a844b7319fef4f41794efdc3ecdd74920cd756 (diff)
downloadop-kernel-dev-84e4e46020cdb0e091858eb8263a2287880e2bad.zip
op-kernel-dev-84e4e46020cdb0e091858eb8263a2287880e2bad.tar.gz
drivers/input/joystick/analog.c: enable precise timer
Like nm10300, tile can just use get_cycles() for this. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'drivers/input/joystick')
-rw-r--r--drivers/input/joystick/analog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joystick/analog.c b/drivers/input/joystick/analog.c
index 358cd7e..7cd74e2 100644
--- a/drivers/input/joystick/analog.c
+++ b/drivers/input/joystick/analog.c
@@ -162,7 +162,7 @@ static unsigned int get_time_pit(void)
#define GET_TIME(x) do { x = get_cycles(); } while (0)
#define DELTA(x,y) ((y)-(x))
#define TIME_NAME "PCC"
-#elif defined(CONFIG_MN10300)
+#elif defined(CONFIG_MN10300) || defined(CONFIG_TILE)
#define GET_TIME(x) do { x = get_cycles(); } while (0)
#define DELTA(x, y) ((x) - (y))
#define TIME_NAME "TSC"
OpenPOWER on IntegriCloud