cpumask: Use cpumask_intersects* APIs where applicable
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
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | sched/rt: cpupri_find: Use cpumask_intersects where applicablekernel/ | +1 | 0 replies | |
| 2/5 | cpu/hotplug: Use cpumask_intersects where applicablekernel/ | +1 | 0 replies | |
| 3/5 | perf: Use cpumask_intersects where applicablekernel/ | +2 | 0 replies | |
| 4/5 | cpuidle: Use cpumask_intersects_and where applicabledrivers/ | +2 | 0 replies | |
| 5/5 | arch_topology: Use cpumask_intersects where applicabledrivers/ | +1 | 1 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.
| Patch | Sudeep Holla | Yury Norov |
|---|---|---|
| Series | R-b | |
| 1/5 | ||
| 2/5 | ||
| 3/5 | ||
| 4/5 | ||
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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