diff options
author | Will Deacon <will@kernel.org> | 2021-07-30 13:24:33 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-08-20 12:33:00 +0200 |
commit | b90ca8badbd11488e5f762346b028666808164e7 (patch) | |
tree | 38cf3f80ceb6e2ae051c85fbb7b4696fecc90ed6 /init/do_mounts_rd.c | |
parent | sched: Reject CPU affinity changes based on task_cpu_possible_mask() (diff) | |
download | linux-b90ca8badbd11488e5f762346b028666808164e7.tar.xz linux-b90ca8badbd11488e5f762346b028666808164e7.zip |
sched: Introduce task_struct::user_cpus_ptr to track requested affinity
In preparation for saving and restoring the user-requested CPU affinity
mask of a task, add a new cpumask_t pointer to 'struct task_struct'.
If the pointer is non-NULL, then the mask is copied across fork() and
freed on task exit.
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-7-will@kernel.org
Diffstat (limited to 'init/do_mounts_rd.c')
0 files changed, 0 insertions, 0 deletions