Skip to content

Commit 9cac324

Browse files
geertuRussell King (Oracle)
authored andcommitted
ARM: 9442/1: smp: Fix IPI alignment in /proc/interrupts
On a system with less than 1000 interrupts, prec = 3, causing a misalignment for the IPI interrupts. E.g. on Koelsch (R-Car M2-W): 200: 0 0 gpio-rcar 6 Edge SW36 IPI0: 0 0 CPU wakeup interrupts IPI1: 0 0 Timer broadcast interrupts IPI2: 1701 2844 Rescheduling interrupts IPI3: 10338 21181 Function call interrupts IPI4: 0 0 CPU stop interrupts IPI5: 651 825 IRQ work interrupts IPI6: 0 0 completion interrupts Err: 0 Fix this by adopting the same solution as used on arm64. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent ccb8ce5 commit 9cac324

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm/kernel/smp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,8 @@ void show_ipi_list(struct seq_file *p, int prec)
551551
if (!ipi_desc[i])
552552
continue;
553553

554-
seq_printf(p, "%*s%u: ", prec - 1, "IPI", i);
554+
seq_printf(p, "%*s%u:%s", prec - 1, "IPI", i,
555+
prec >= 4 ? " " : "");
555556

556557
for_each_online_cpu(cpu)
557558
seq_printf(p, "%10u ", irq_desc_kstat_cpu(ipi_desc[i], cpu));

0 commit comments

Comments
 (0)