diff options
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/include/asm/compat.h | 2 | ||||
-rw-r--r-- | arch/tile/include/asm/unistd.h | 1 | ||||
-rw-r--r-- | arch/tile/kernel/compat.c | 18 |
3 files changed, 1 insertions, 20 deletions
diff --git a/arch/tile/include/asm/compat.h b/arch/tile/include/asm/compat.h index ca61fb4296b3..88f3c227afd9 100644 --- a/arch/tile/include/asm/compat.h +++ b/arch/tile/include/asm/compat.h | |||
@@ -296,8 +296,6 @@ long compat_sys_sync_file_range2(int fd, unsigned int flags, | |||
296 | long compat_sys_fallocate(int fd, int mode, | 296 | long compat_sys_fallocate(int fd, int mode, |
297 | u32 offset_lo, u32 offset_hi, | 297 | u32 offset_lo, u32 offset_hi, |
298 | u32 len_lo, u32 len_hi); | 298 | u32 len_lo, u32 len_hi); |
299 | long compat_sys_sched_rr_get_interval(compat_pid_t pid, | ||
300 | struct compat_timespec __user *interval); | ||
301 | 299 | ||
302 | /* Assembly trampoline to avoid clobbering r0. */ | 300 | /* Assembly trampoline to avoid clobbering r0. */ |
303 | long _compat_sys_rt_sigreturn(void); | 301 | long _compat_sys_rt_sigreturn(void); |
diff --git a/arch/tile/include/asm/unistd.h b/arch/tile/include/asm/unistd.h index b51c6ee3cd6c..fe841e7d4963 100644 --- a/arch/tile/include/asm/unistd.h +++ b/arch/tile/include/asm/unistd.h | |||
@@ -14,6 +14,7 @@ | |||
14 | /* In compat mode, we use sys_llseek() for compat_sys_llseek(). */ | 14 | /* In compat mode, we use sys_llseek() for compat_sys_llseek(). */ |
15 | #ifdef CONFIG_COMPAT | 15 | #ifdef CONFIG_COMPAT |
16 | #define __ARCH_WANT_SYS_LLSEEK | 16 | #define __ARCH_WANT_SYS_LLSEEK |
17 | #define __ARCH_WANT_COMPAT_SYS_SCHED_RR_GET_INTERVAL | ||
17 | #endif | 18 | #endif |
18 | #define __ARCH_WANT_SYS_NEWFSTATAT | 19 | #define __ARCH_WANT_SYS_NEWFSTATAT |
19 | #define __ARCH_WANT_SYS_EXECVE | 20 | #define __ARCH_WANT_SYS_EXECVE |
diff --git a/arch/tile/kernel/compat.c b/arch/tile/kernel/compat.c index 9cd7cb6041c0..7f72401b4f45 100644 --- a/arch/tile/kernel/compat.c +++ b/arch/tile/kernel/compat.c | |||
@@ -76,24 +76,6 @@ long compat_sys_fallocate(int fd, int mode, | |||
76 | ((loff_t)len_hi << 32) | len_lo); | 76 | ((loff_t)len_hi << 32) | len_lo); |
77 | } | 77 | } |
78 | 78 | ||
79 | |||
80 | |||
81 | long compat_sys_sched_rr_get_interval(compat_pid_t pid, | ||
82 | struct compat_timespec __user *interval) | ||
83 | { | ||
84 | struct timespec t; | ||
85 | int ret; | ||
86 | mm_segment_t old_fs = get_fs(); | ||
87 | |||
88 | set_fs(KERNEL_DS); | ||
89 | ret = sys_sched_rr_get_interval(pid, | ||
90 | (struct timespec __force __user *)&t); | ||
91 | set_fs(old_fs); | ||
92 | if (put_compat_timespec(&t, interval)) | ||
93 | return -EFAULT; | ||
94 | return ret; | ||
95 | } | ||
96 | |||
97 | /* Provide the compat syscall number to call mapping. */ | 79 | /* Provide the compat syscall number to call mapping. */ |
98 | #undef __SYSCALL | 80 | #undef __SYSCALL |
99 | #define __SYSCALL(nr, call) [nr] = (call), | 81 | #define __SYSCALL(nr, call) [nr] = (call), |