diff options
author | Frederic Weisbecker <[email protected]> | 2021-11-23 01:37:05 +0100 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2021-12-09 11:34:37 -0800 |
commit | a81aeaf7a1de51400374a8e3982a3cc3ff130dd1 (patch) | |
tree | 734d0600330a1c896731ac4d0de7db2782b183fd /scripts/bpf_doc.py | |
parent | 8d9703964697340e073305574de4f5df31a28ba9 (diff) |
rcu/nocb: Optimize kthreads and rdp initialization
Currently cpumask_available() is used to prevent from unwanted NOCB
initialization. However if neither "rcu_nocbs=" nor "nohz_full="
parameters are passed to a kernel built with CONFIG_CPUMASK_OFFSTACK=n,
the initialization path is still taken, running through all sorts of
needless operations and iterations on an empty cpumask.
Fix this by relying on a real initialization state instead. This also
optimizes kthread creation, preventing needless iteration over all online
CPUs when the kernel is booted without any offloaded CPUs.
Reviewed-by: Neeraj Upadhyay <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Boqun Feng <[email protected]>
Cc: Uladzislau Rezki <[email protected]>
Cc: Josh Triplett <[email protected]>
Cc: Joel Fernandes <[email protected]>
Tested-by: Juri Lelli <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions