diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-19 18:17:46 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-20 00:30:57 -0400 |
commit | abca5fc535a3ee0f36fb6d4468a453eaae769921 (patch) | |
tree | b3aac69994bdf81ace541980530704e800f20dce /kernel/compat.c | |
parent | 7bea578b5f0c44c974a585bfbe6422065b9f6b6d (diff) |
sched_rr_get_interval(): move compat to native, get rid of set_fs()
switch to using timespec64 internally, while we are at it
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/compat.c')
-rw-r--r-- | kernel/compat.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/kernel/compat.c b/kernel/compat.c index a46a4a40bb8b..d1cee656a7ed 100644 --- a/kernel/compat.c +++ b/kernel/compat.c | |||
@@ -562,22 +562,6 @@ COMPAT_SYSCALL_DEFINE4(migrate_pages, compat_pid_t, pid, | |||
562 | } | 562 | } |
563 | #endif | 563 | #endif |
564 | 564 | ||
565 | COMPAT_SYSCALL_DEFINE2(sched_rr_get_interval, | ||
566 | compat_pid_t, pid, | ||
567 | struct compat_timespec __user *, interval) | ||
568 | { | ||
569 | struct timespec t; | ||
570 | int ret; | ||
571 | mm_segment_t old_fs = get_fs(); | ||
572 | |||
573 | set_fs(KERNEL_DS); | ||
574 | ret = sys_sched_rr_get_interval(pid, (struct timespec __user *)&t); | ||
575 | set_fs(old_fs); | ||
576 | if (compat_put_timespec(&t, interval)) | ||
577 | return -EFAULT; | ||
578 | return ret; | ||
579 | } | ||
580 | |||
581 | /* | 565 | /* |
582 | * Allocate user-space memory for the duration of a single system call, | 566 | * Allocate user-space memory for the duration of a single system call, |
583 | * in order to marshall parameters inside a compat thunk. | 567 | * in order to marshall parameters inside a compat thunk. |