diff options
author | Yejune Deng <[email protected]> | 2021-05-10 16:10:24 +0100 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2021-05-19 10:51:40 +0200 |
commit | 570a752b7a9bd03b50ad6420cd7f10092cc11bd3 (patch) | |
tree | 848e23fc4dd2a57a0b17f2a8fc5732d70d59e5c2 /scripts/gdb/linux/tasks.py | |
parent | 00b89fe0197f0c55a045775c11553c0cdb7082fe (diff) |
lib/smp_processor_id: Use is_percpu_thread() instead of nr_cpus_allowed
is_percpu_thread() more elegantly handles SMP vs UP, and further checks the
presence of PF_NO_SETAFFINITY. This lets us catch cases where
check_preemption_disabled() can race with a concurrent sched_setaffinity().
Signed-off-by: Yejune Deng <[email protected]>
[Amended changelog]
Signed-off-by: Valentin Schneider <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions