diff options
| author | Ming Lei <[email protected]> | 2022-12-27 02:29:02 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2023-01-17 17:50:06 +0000 |
| commit | e7bdd7f0cbd1c001bb9b4d3313edc5ee094bc3f8 (patch) | |
| tree | d7497f8c9f4c6dbe12ce1c61897b72d0445e6c9c /tools/perf/scripts/python/netdev-times.py | |
| parent | genirq/affinity: Pass affinity managed mask array to irq_build_affinity_masks (diff) | |
| download | kernel-e7bdd7f0cbd1c001bb9b4d3313edc5ee094bc3f8.tar.gz kernel-e7bdd7f0cbd1c001bb9b4d3313edc5ee094bc3f8.zip | |
genirq/affinity: Don't pass irq_affinity_desc array to irq_build_affinity_masks
Prepare for abstracting irq_build_affinity_masks() into a public function
for assigning all CPUs evenly into several groups.
Don't pass irq_affinity_desc array to irq_build_affinity_masks, instead
return a cpumask array by storing each assigned group into one element of
the array.
This allows to provide a generic interface for grouping all CPUs evenly
from a NUMA and CPU locality viewpoint, and the cost is one extra allocation
in irq_build_affinity_masks(), which should be fine since it is done via
GFP_KERNEL and irq_build_affinity_masks() is a slow path anyway.
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: John Garry <[email protected]>
Reviewed-by: Jens Axboe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
