Skip to content

cpumask: Use cpumask_intersects* APIs where applicable

Shrikanth Hegde linux-perf-users lkml 1 version Applied

Status from this message: The following commit has been merged into the perf/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5sched/rt: cpupri_find: Use cpumask_intersects where applicablekernel/sched/cpupri.c+1 -10 replies
2/5cpu/hotplug: Use cpumask_intersects where applicablekernel/cpu.c+1 -20 replies
3/5perf: Use cpumask_intersects where applicablekernel/events/core.c+2 -50 replies
4/5cpuidle: Use cpumask_intersects_and where applicabledrivers/cpuidle/coupled.c+2 -20 replies
5/5arch_topology: Use cpumask_intersects where applicabledrivers/base/arch_topology.c+1 -81 reply

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSudeep HollaYury Norov
SeriesR-b
1/5
2/5
3/5
4/5
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] cpumask: Use cpumask_intersects* APIs where applicable

It was observed while working on cpumask_intersects_and, check like below could use it instead.

if (cpumask_first_and_and() < nr_cpu_ids)

While there, did check the code for any such similar patterns of cpumask_any_and, cpumask_first_and and explicit loops where cpu found by these APIs are not being used. All those callsites instead can simply use cpumask_intersects.

Note that few more places can use similar change. But, I have left them as is.
drivers/net/ethernet/sfc/efx_channels.c+370 drivers/net/ethernet/sfc/siena/efx_channels.c+371 drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c+153

Also, these patches can combined into three patches if that is easier for review/merge. I have kept it separate since they belong to different subsystems.

Shrikanth Hegde (5):
sched/rt: cpupri_find: Use cpumask_intersects where applicable cpu/hotplug: Use cpumask_intersects where applicable
perf: Use cpumask_intersects where applicable
cpuidle: Use cpumask_intersects_and where applicable
arch_topology: Use cpumask_intersects where applicable

 drivers/base/arch_topology.c | 9 +--------
 drivers/cpuidle/coupled.c    | 4 ++--
 kernel/cpu.c                 | 3 +--
 kernel/events/core.c         | 7 ++-----
 kernel/sched/cpupri.c        | 2 +-
 5 files changed, 7 insertions(+), 18 deletions(-)
Signature · 1 line
2.52.0