aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2021-07-30 12:24:34 +0100
committerPeter Zijlstra <peterz@infradead.org>2021-08-20 12:33:00 +0200
commitdb3b02ae896e88b6bb7a95c1373602e87e0de84c (patch)
tree57598a447946628ffcaead1dc6056634cc8799b7 /include/linux/sched.h
parentsched: Introduce task_struct::user_cpus_ptr to track requested affinity (diff)
downloadlinux-dev-db3b02ae896e88b6bb7a95c1373602e87e0de84c.tar.xz
linux-dev-db3b02ae896e88b6bb7a95c1373602e87e0de84c.zip
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 '')
0 files changed, 0 insertions, 0 deletions