diff options
| author | Joel Fernandes <joelagnelf@nvidia.com> | 2026-01-03 10:37:54 -0500 |
|---|---|---|
| committer | Joel Fernandes <joelagnelf@nvidia.com> | 2026-03-30 15:48:14 -0400 |
| commit | 18d01ff3b9812b785673689780bb3868c4c1e2fa (patch) | |
| tree | c1358b733a63abe9023046f430858d1a56aa2e90 /rust/kernel/alloc/kvec/errors.rs | |
| parent | 3e3d7d8f3ad35deaf3f8150f66555ef54cf1754e (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 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
