From: Stephen Rothwell Date: Tue, 9 Aug 2011 23:25:43 +0000 (+1000) Subject: Merge remote-tracking branch 'input-current/for-linus' X-Git-Tag: next-20110810~76 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=12767e45f24e2fd4e349acfcd8d060f5f170cad6;p=karo-tx-linux.git Merge remote-tracking branch 'input-current/for-linus' --- 12767e45f24e2fd4e349acfcd8d060f5f170cad6 diff --cc drivers/input/joystick/analog.c index 9882971827e6,c02131785a36..358cd7ee905b --- a/drivers/input/joystick/analog.c +++ b/drivers/input/joystick/analog.c @@@ -136,10 -136,10 +136,10 @@@ struct analog_port #ifdef __i386__ -#include +#include #define GET_TIME(x) do { if (cpu_has_tsc) rdtscl(x); else x = get_time_pit(); } while (0) - #define DELTA(x,y) (cpu_has_tsc ? ((y) - (x)) : ((x) - (y) + ((x) < (y) ? CLOCK_TICK_RATE / HZ : 0))) + #define DELTA(x,y) (cpu_has_tsc ? ((y) - (x)) : ((x) - (y) + ((x) < (y) ? PIT_TICK_RATE / HZ : 0))) #define TIME_NAME (cpu_has_tsc?"TSC":"PIT") static unsigned int get_time_pit(void) {