Skip to content

Commit 16436f7

Browse files
ardbiesheuvelMarc Zyngier
authored andcommitted
irqchip/gic-v3-its: Fix build for !SMP
Commit 835f442 ("irqchip/gic-v3-its: Limit memreserve cpuhp state lifetime") added a reference to cpus_booted_once_mask, which does not exist on !SMP builds, breaking the build for such configurations. Given the intent of the check, short circuit it to always pass. Cc: Valentin Schneider <[email protected]> Fixes: 835f442 ("irqchip/gic-v3-its: Limit memreserve cpuhp state lifetime") Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c831d92 commit 16436f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/irqchip/irq-gic-v3-its.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5241,7 +5241,8 @@ static int its_cpu_memreserve_lpi(unsigned int cpu)
52415241

52425242
out:
52435243
/* Last CPU being brought up gets to issue the cleanup */
5244-
if (cpumask_equal(&cpus_booted_once_mask, cpu_possible_mask))
5244+
if (!IS_ENABLED(CONFIG_SMP) ||
5245+
cpumask_equal(&cpus_booted_once_mask, cpu_possible_mask))
52455246
schedule_work(&rdist_memreserve_cpuhp_cleanup_work);
52465247

52475248
gic_data_rdist()->flags |= RD_LOCAL_MEMRESERVE_DONE;

0 commit comments

Comments
 (0)