tizen: Use unique directory prefix for baselibs packages
[platform/kernel/linux-rpi.git] / drivers / irqchip / irq-sifive-plic.c
index e148490..5b7bc4f 100644 (file)
@@ -532,17 +532,18 @@ done:
        }
 
        /*
-        * We can have multiple PLIC instances so setup cpuhp state only
-        * when context handler for current/boot CPU is present.
+        * We can have multiple PLIC instances so setup cpuhp state
+        * and register syscore operations only when context handler
+        * for current/boot CPU is present.
         */
        handler = this_cpu_ptr(&plic_handlers);
        if (handler->present && !plic_cpuhp_setup_done) {
                cpuhp_setup_state(CPUHP_AP_IRQ_SIFIVE_PLIC_STARTING,
                                  "irqchip/sifive/plic:starting",
                                  plic_starting_cpu, plic_dying_cpu);
+               register_syscore_ops(&plic_irq_syscore_ops);
                plic_cpuhp_setup_done = true;
        }
-       register_syscore_ops(&plic_irq_syscore_ops);
 
        pr_info("%pOFP: mapped %d interrupts with %d handlers for"
                " %d contexts.\n", node, nr_irqs, nr_handlers, nr_contexts);