Skip to content

Commit 5527b06

Browse files
asdfugilKAGA-KOKO
authored andcommitted
irqchip/apple-aic: Skip unnecessary enabling of use_fast_ipi
use_fast_ipi is true by default and there is no need to "enable" it. Signed-off-by: Nick Chan <towinchenmi@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Sven Peter <sven@svenpeter.dev> Link: https://lore.kernel.org/all/20240901034143.12731-3-towinchenmi@gmail.com
1 parent 9e65863 commit 5527b06

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/irqchip/irq-apple-aic.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -987,9 +987,7 @@ static int __init aic_of_ic_init(struct device_node *node, struct device_node *p
987987
off += sizeof(u32) * (irqc->max_irq >> 5); /* MASK_CLR */
988988
off += sizeof(u32) * (irqc->max_irq >> 5); /* HW_STATE */
989989

990-
if (irqc->info.fast_ipi)
991-
static_branch_enable(&use_fast_ipi);
992-
else
990+
if (!irqc->info.fast_ipi)
993991
static_branch_disable(&use_fast_ipi);
994992

995993
irqc->info.die_stride = off - start_off;

0 commit comments

Comments
 (0)