diff options
| author | 2026-01-03 10:37:54 -0500 | |
|---|---|---|
| committer | 2026-03-30 15:48:14 -0400 | |
| commit | 18d01ff3b9812b785673689780bb3868c4c1e2fa (patch) | |
| tree | c1358b733a63abe9023046f430858d1a56aa2e90 /include/linux/hsi/ssh:/git@git.zx2c4.com | |
| parent | rcu-tasks: Remove unnecessary smp_store_release() in cblist_init_generic() (diff) | |
rcu/nocb: Consolidate rcu_nocb_cpu_offload/deoffload functions
The rcu_nocb_cpu_offload() and rcu_nocb_cpu_deoffload() functions are
nearly duplicates.
Therefore, extract the common logic into rcu_nocb_cpu_toggle_offload()
which takes an 'offload' boolean, and make both exported functions
simple wrappers.
This eliminates a bunch of duplicate code at the call sites, namely
mutex locking, CPU hotplug locking and CPU online checks.
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Diffstat (limited to 'include/linux/hsi/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
