]> Git Repo - J-linux.git/commitdiff
irqchip/apple-aic: Skip unnecessary enabling of use_fast_ipi
authorNick Chan <[email protected]>
Sun, 1 Sep 2024 03:40:05 +0000 (11:40 +0800)
committerThomas Gleixner <[email protected]>
Wed, 4 Sep 2024 18:43:30 +0000 (20:43 +0200)
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]
drivers/irqchip/irq-apple-aic.c

index 5c534d9fd2b00dccfb5186a3fc1c7ac8ebeb1d98..8d81d5fb3c504c54496394917f18d4dadd8e71ff 100644 (file)
@@ -987,9 +987,7 @@ static int __init aic_of_ic_init(struct device_node *node, struct device_node *p
        off += sizeof(u32) * (irqc->max_irq >> 5); /* MASK_CLR */
        off += sizeof(u32) * (irqc->max_irq >> 5); /* HW_STATE */
 
-       if (irqc->info.fast_ipi)
-               static_branch_enable(&use_fast_ipi);
-       else
+       if (!irqc->info.fast_ipi)
                static_branch_disable(&use_fast_ipi);
 
        irqc->info.die_stride = off - start_off;
This page took 0.047042 seconds and 4 git commands to generate.