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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Sven Peter <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 9e65863 commit 5527b06

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)