# \[PATCH\] drivers/input/joystick/analog.c: enable precise timer

- From: Chris Metcalf \<hidden\>
- Date: 2013-02-01 20:43:22 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2013/02/3995027
- Thread: https://ratatoskr.run/linux-input/2013/02/3995027/t.md

```text
Like nm10300, tile can just use get_cycles() for this.

Signed-off-by: Chris Metcalf <redacted>
---
 drivers/input/joystick/analog.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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"
-- 
1.7.10.3
```
