|
@@ -17,17 +17,7 @@
|
|
|
|
|
|
#ifdef CONFIG_COMPAT
|
|
|
|
|
|
-/* Note to the author of this code: did it ever occur to
|
|
|
- you why the ifdefs are needed? Think about it again. -AK */
|
|
|
-#if defined(CONFIG_X86_64) || defined(CONFIG_TILE)
|
|
|
-# define INPUT_COMPAT_TEST is_compat_task()
|
|
|
-#elif defined(CONFIG_S390)
|
|
|
-# define INPUT_COMPAT_TEST test_thread_flag(TIF_31BIT)
|
|
|
-#elif defined(CONFIG_MIPS)
|
|
|
-# define INPUT_COMPAT_TEST test_thread_flag(TIF_32BIT_ADDR)
|
|
|
-#else
|
|
|
-# define INPUT_COMPAT_TEST test_thread_flag(TIF_32BIT)
|
|
|
-#endif
|
|
|
+#define INPUT_COMPAT_TEST in_compat_syscall()
|
|
|
|
|
|
struct input_event_compat {
|
|
|
struct compat_timeval time;
|