diff options
author | Will Deacon <will@kernel.org> | 2021-07-30 14:24:34 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-08-20 13:33:00 +0300 |
commit | db3b02ae896e88b6bb7a95c1373602e87e0de84c (patch) | |
tree | 57598a447946628ffcaead1dc6056634cc8799b7 /kernel/sched/autogroup.c | |
parent | b90ca8badbd11488e5f762346b028666808164e7 (diff) | |
download | linux-db3b02ae896e88b6bb7a95c1373602e87e0de84c.tar.xz |
sched: Split the guts of sched_setaffinity() into a helper function
In preparation for replaying user affinity requests using a saved mask,
split sched_setaffinity() up so that the initial task lookup and
security checks are only performed when the request is coming directly
from userspace.
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <Valentin.Schneider@arm.com>
Link: https://lore.kernel.org/r/20210730112443.23245-8-will@kernel.org
Diffstat (limited to 'kernel/sched/autogroup.c')
0 files changed, 0 insertions, 0 deletions