[PATCH 0/6] bitmap: optimize API usage

Yury Norov
2024-05-13T22:01:51Z

In a few places bitmap API is called with such a combination of
parameters that makes the call unneeded, or there's a trivial cheaper
alternative.

For example, cpumask_copy(dst, src) where dst == src is simply a no-op.
This series addresses such cases spotted on x86_64 with LTP.

All the patches are independent and may be applied separately in
corresponding subsystems. Or I can take them in bitmap branch, if it's
more convenient.

Yury Norov (6):
smp: optimize smp_call_function_many_cond()
sched/topology: optimize topology_span_sane()
driver core: cpu: optimize print_cpus_isolated()
genirq: optimze irq_do_set_affinity()
cgroup/cpuset: optimize cpuset_mems_allowed_intersects()
tick/common: optimize cpumask_equal() usage

drivers/base/cpu.c | 6 ++++--
kernel/cgroup/cpuset.c | 3 +++
kernel/irq/manage.c | 3 ++-
kernel/sched/topology.c | 2 +-
kernel/smp.c | 5 ++++-
kernel/time/tick-common.c | 15 +++++++++++----
6 files changed, 25 insertions(+), 9 deletions(-)

--
2.40.1