]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
Input: joystick - use get_cycles on ARMv8
authorMark Brown <broonie@linaro.org>
Mon, 11 Aug 2014 18:08:56 +0000 (11:08 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 12 Aug 2014 16:59:40 +0000 (09:59 -0700)
As with ARM the ARMv8 architecture provides a cycle counter which can be
used to provide a high resolution time for the joystick driver and
silence the build warning that results from not having a precise timer
on ARMv8, making allmodconfig and allyesconfig quieter.

Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/analog.c

index 9135606c86496511919a5238898aa98cf1c74996..ab0fdcd36e18d7746ce7f8d5e41c51b5dfae9304 100644 (file)
@@ -158,7 +158,7 @@ static unsigned int get_time_pit(void)
 #define GET_TIME(x)    rdtscl(x)
 #define DELTA(x,y)     ((y)-(x))
 #define TIME_NAME      "TSC"
-#elif defined(__alpha__) || defined(CONFIG_MN10300) || defined(CONFIG_ARM) || defined(CONFIG_TILE)
+#elif defined(__alpha__) || defined(CONFIG_MN10300) || defined(CONFIG_ARM) || defined(CONFIG_ARM64) || defined(CONFIG_TILE)
 #define GET_TIME(x)    do { x = get_cycles(); } while (0)
 #define DELTA(x,y)     ((y)-(x))
 #define TIME_NAME      "get_cycles"