diff options
author | 2019-05-21 13:03:49 -0700 | |
---|---|---|
committer | 2019-08-13 14:35:49 -0700 | |
commit | ec5ef87bac820be8ae9cc0a95108cded039ed8ef (patch) | |
tree | c3159cdedc58dd861fe86ce7769e3fe2147b7f56 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rcu/nocb: Remove obsolete nocb_gp_head and nocb_gp_tail fields (diff) | |
download | wireguard-linux-ec5ef87bac820be8ae9cc0a95108cded039ed8ef.tar.xz wireguard-linux-ec5ef87bac820be8ae9cc0a95108cded039ed8ef.zip |
rcu/nocb: Use build-time no-CBs check in rcu_do_batch()
Currently, rcu_do_batch() invokes rcu_segcblist_is_offloaded() each time
it needs to know whether the current CPU is a no-CBs CPU. Given that it
is not possible to change the no-CBs status of a CPU after boot, and given
that it is not possible to even have no-CBs CPUs in CONFIG_RCU_NOCB_CPU=n
kernels, this per-callback invocation wastes CPU. This commit therefore
created a const on-stack variable to allow this check to be done only
once per rcu_do_batch() invocation.
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions