diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-25 17:26:57 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-03 18:16:13 -0500 |
commit | d7b5427cec79d993459c162db67eac9e22135e8b (patch) | |
tree | 60b1a7089a4d24c0afed1ecf436388d202bbe38e /arch/s390 | |
parent | e181ee4cd7e510738b1a8ede4e2f3f994df3234e (diff) |
s390: switch to generic compat sched_rr_get_interval()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/compat_linux.c | 16 | ||||
-rw-r--r-- | arch/s390/kernel/compat_linux.h | 2 | ||||
-rw-r--r-- | arch/s390/kernel/compat_wrapper.S | 2 |
3 files changed, 1 insertions, 19 deletions
diff --git a/arch/s390/kernel/compat_linux.c b/arch/s390/kernel/compat_linux.c index 4b95fc652f7c..19f26de27fae 100644 --- a/arch/s390/kernel/compat_linux.c +++ b/arch/s390/kernel/compat_linux.c | |||
@@ -352,22 +352,6 @@ asmlinkage long sys32_ftruncate64(unsigned int fd, unsigned long high, unsigned | |||
352 | return sys_ftruncate(fd, (high << 32) | low); | 352 | return sys_ftruncate(fd, (high << 32) | low); |
353 | } | 353 | } |
354 | 354 | ||
355 | asmlinkage long sys32_sched_rr_get_interval(compat_pid_t pid, | ||
356 | struct compat_timespec __user *interval) | ||
357 | { | ||
358 | struct timespec t; | ||
359 | int ret; | ||
360 | mm_segment_t old_fs = get_fs (); | ||
361 | |||
362 | set_fs (KERNEL_DS); | ||
363 | ret = sys_sched_rr_get_interval(pid, | ||
364 | (struct timespec __force __user *) &t); | ||
365 | set_fs (old_fs); | ||
366 | if (put_compat_timespec(&t, interval)) | ||
367 | return -EFAULT; | ||
368 | return ret; | ||
369 | } | ||
370 | |||
371 | asmlinkage long sys32_pread64(unsigned int fd, char __user *ubuf, | 355 | asmlinkage long sys32_pread64(unsigned int fd, char __user *ubuf, |
372 | size_t count, u32 poshi, u32 poslo) | 356 | size_t count, u32 poshi, u32 poslo) |
373 | { | 357 | { |
diff --git a/arch/s390/kernel/compat_linux.h b/arch/s390/kernel/compat_linux.h index f0280a198380..aee753dea1d4 100644 --- a/arch/s390/kernel/compat_linux.h +++ b/arch/s390/kernel/compat_linux.h | |||
@@ -113,8 +113,6 @@ long sys32_ipc(u32 call, int first, int second, int third, u32 ptr); | |||
113 | long sys32_truncate64(const char __user * path, unsigned long high, | 113 | long sys32_truncate64(const char __user * path, unsigned long high, |
114 | unsigned long low); | 114 | unsigned long low); |
115 | long sys32_ftruncate64(unsigned int fd, unsigned long high, unsigned long low); | 115 | long sys32_ftruncate64(unsigned int fd, unsigned long high, unsigned long low); |
116 | long sys32_sched_rr_get_interval(compat_pid_t pid, | ||
117 | struct compat_timespec __user *interval); | ||
118 | long sys32_init_module(void __user *umod, unsigned long len, | 116 | long sys32_init_module(void __user *umod, unsigned long len, |
119 | const char __user *uargs); | 117 | const char __user *uargs); |
120 | long sys32_delete_module(const char __user *name_user, unsigned int flags); | 118 | long sys32_delete_module(const char __user *name_user, unsigned int flags); |
diff --git a/arch/s390/kernel/compat_wrapper.S b/arch/s390/kernel/compat_wrapper.S index ee6c36b41ef5..0dd80b9ff74c 100644 --- a/arch/s390/kernel/compat_wrapper.S +++ b/arch/s390/kernel/compat_wrapper.S | |||
@@ -631,7 +631,7 @@ ENTRY(sys32_sched_get_priority_min_wrapper) | |||
631 | ENTRY(sys32_sched_rr_get_interval_wrapper) | 631 | ENTRY(sys32_sched_rr_get_interval_wrapper) |
632 | lgfr %r2,%r2 # pid_t | 632 | lgfr %r2,%r2 # pid_t |
633 | llgtr %r3,%r3 # struct compat_timespec * | 633 | llgtr %r3,%r3 # struct compat_timespec * |
634 | jg sys32_sched_rr_get_interval # branch to system call | 634 | jg compat_sys_sched_rr_get_interval # branch to system call |
635 | 635 | ||
636 | ENTRY(compat_sys_nanosleep_wrapper) | 636 | ENTRY(compat_sys_nanosleep_wrapper) |
637 | llgtr %r2,%r2 # struct compat_timespec * | 637 | llgtr %r2,%r2 # struct compat_timespec * |