linux/drivers/perf/arm_cspmu
Dawei Li b5310fa1fe perf/arm_cspmu: Avoid placing cpumask on the stack
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_any_and_but() to avoid the need for a temporary cpumask on
the stack.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Dawei Li <dawei.li@shingroup.cn>
Link: https://lore.kernel.org/r/20240403155950.2068109-5-dawei.li@shingroup.cn
Signed-off-by: Will Deacon <will@kernel.org>
2024-04-09 16:47:15 +01:00
..
ampere_cspmu.c perf: arm_cspmu: ampere_cspmu: Add support for Ampere SoC PMU 2023-10-10 19:10:54 +01:00
arm_cspmu.c perf/arm_cspmu: Avoid placing cpumask on the stack 2024-04-09 16:47:15 +01:00
arm_cspmu.h perf/arm_cspmu: Simplify attribute groups 2024-02-09 17:34:35 +00:00
Kconfig perf: arm_cspmu: ampere_cspmu: Add support for Ampere SoC PMU 2023-10-10 19:10:54 +01:00
Makefile perf: arm_cspmu: ampere_cspmu: Add support for Ampere SoC PMU 2023-10-10 19:10:54 +01:00
nvidia_cspmu.c perf/arm_cspmu: Simplify initialisation 2024-02-09 17:34:34 +00:00