diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index ccc23a9cd264..1a8252385c4d 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4908,9 +4908,10 @@ out_unlock: | |||
4908 | return retval; | 4908 | return retval; |
4909 | } | 4909 | } |
4910 | 4910 | ||
4911 | long sched_setaffinity(pid_t pid, cpumask_t new_mask) | 4911 | long sched_setaffinity(pid_t pid, const cpumask_t *in_mask) |
4912 | { | 4912 | { |
4913 | cpumask_t cpus_allowed; | 4913 | cpumask_t cpus_allowed; |
4914 | cpumask_t new_mask = *in_mask; | ||
4914 | struct task_struct *p; | 4915 | struct task_struct *p; |
4915 | int retval; | 4916 | int retval; |
4916 | 4917 | ||
@@ -4991,7 +4992,7 @@ asmlinkage long sys_sched_setaffinity(pid_t pid, unsigned int len, | |||
4991 | if (retval) | 4992 | if (retval) |
4992 | return retval; | 4993 | return retval; |
4993 | 4994 | ||
4994 | return sched_setaffinity(pid, new_mask); | 4995 | return sched_setaffinity(pid, &new_mask); |
4995 | } | 4996 | } |
4996 | 4997 | ||
4997 | /* | 4998 | /* |