diff options
| author | Dawei Li <[email protected]> | 2024-04-24 10:55:48 +0800 |
|---|---|---|
| committer | Andreas Larsson <[email protected]> | 2024-05-08 19:42:16 +0200 |
| commit | 1c9e709cde80fb612e07d9503ad04457e8a58da2 (patch) | |
| tree | 2994d58a772b0d2d346273d7bf9f3505c3f6cb21 /tools/perf/scripts/python/bin/mem-phys-addr-report | |
| parent | 82b395a2b3cdebc3688754bd289f91bdd0726710 (diff) | |
sparc/leon: Remove on-stack cpumask var
In general it's preferable to avoid placing cpumasks on the stack, as
for large values of NR_CPUS these can consume significant amounts of
stack space and make stack overflows more likely.
Use cpumask_subset() and cpumask_first_and() to avoid the need for a
temporary cpumask on the stack.
Reviewed-by: Sam Ravnborg <[email protected]>
Signed-off-by: Dawei Li <[email protected]>
Reviewed-by: Andreas Larsson <[email protected]>
Tested-by: Andreas Larsson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andreas Larsson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/mem-phys-addr-report')
0 files changed, 0 insertions, 0 deletions