diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index ec7fd9cee306..f77f23f8f479 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4031,7 +4031,7 @@ long sched_getaffinity(pid_t pid, cpumask_t *mask) | |||
4031 | goto out_unlock; | 4031 | goto out_unlock; |
4032 | 4032 | ||
4033 | retval = 0; | 4033 | retval = 0; |
4034 | cpus_and(*mask, p->cpus_allowed, cpu_possible_map); | 4034 | cpus_and(*mask, p->cpus_allowed, cpu_online_map); |
4035 | 4035 | ||
4036 | out_unlock: | 4036 | out_unlock: |
4037 | read_unlock(&tasklist_lock); | 4037 | read_unlock(&tasklist_lock); |