analog.c (c9ab800167e1fc7b87a069b85b53a7eef414b4ae) analog.c (a687a5337063af99ebd0eebaa6f4b4cf2e07c21b)
1/*
2 * Copyright (c) 1996-2001 Vojtech Pavlik
3 */
4
5/*
6 * Analog joystick and gamepad driver for Linux
7 */
8

--- 149 unchanged lines hidden (view full) ---

158 raw_spin_unlock_irqrestore(&i8253_lock, flags);
159
160 return count;
161}
162#elif defined(__x86_64__)
163#define GET_TIME(x) do { x = (unsigned int)rdtsc(); } while (0)
164#define DELTA(x,y) ((y)-(x))
165#define TIME_NAME "TSC"
1/*
2 * Copyright (c) 1996-2001 Vojtech Pavlik
3 */
4
5/*
6 * Analog joystick and gamepad driver for Linux
7 */
8

--- 149 unchanged lines hidden (view full) ---

158 raw_spin_unlock_irqrestore(&i8253_lock, flags);
159
160 return count;
161}
162#elif defined(__x86_64__)
163#define GET_TIME(x) do { x = (unsigned int)rdtsc(); } while (0)
164#define DELTA(x,y) ((y)-(x))
165#define TIME_NAME "TSC"
166#elif defined(__alpha__) || defined(CONFIG_MN10300) || defined(CONFIG_ARM) || defined(CONFIG_ARM64) || defined(CONFIG_PPC) || defined(CONFIG_RISCV) || defined(CONFIG_TILE)
166#elif defined(__alpha__) || defined(CONFIG_ARM) || defined(CONFIG_ARM64) || defined(CONFIG_RISCV)
167#define GET_TIME(x) do { x = get_cycles(); } while (0)
168#define DELTA(x,y) ((y)-(x))
169#define TIME_NAME "get_cycles"
170#else
171#define FAKE_TIME
172static unsigned long analog_faketime = 0;
173#define GET_TIME(x) do { x = analog_faketime++; } while(0)
174#define DELTA(x,y) ((y)-(x))

--- 628 unchanged lines hidden ---
167#define GET_TIME(x) do { x = get_cycles(); } while (0)
168#define DELTA(x,y) ((y)-(x))
169#define TIME_NAME "get_cycles"
170#else
171#define FAKE_TIME
172static unsigned long analog_faketime = 0;
173#define GET_TIME(x) do { x = analog_faketime++; } while(0)
174#define DELTA(x,y) ((y)-(x))

--- 628 unchanged lines hidden ---