diff options
author | Ming Lei <[email protected]> | 2022-12-27 10:29:02 +0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2023-01-17 18:50:06 +0100 |
commit | e7bdd7f0cbd1c001bb9b4d3313edc5ee094bc3f8 (patch) | |
tree | d7497f8c9f4c6dbe12ce1c61897b72d0445e6c9c /scripts/gdb/linux/modules.py | |
parent | 1f962d91a15af54301c63febb8ac2ba07aa3654f (diff) |
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 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions