]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARC: [intc-*] switch to linear domain
authorVineet Gupta <vgupta@synopsys.com>
Thu, 28 Jan 2016 04:10:10 +0000 (09:40 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 7 Mar 2016 12:38:01 +0000 (18:08 +0530)
Now that we have Timers probed from DT, don't need legacy domain

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/intc-arcv2.c
arch/arc/kernel/intc-compact.c

index 592cc977151e0d8b060a3e5d0b3d4a979ae13af3..e8534035dd806c561951f2c5055eba24701f6250 100644 (file)
@@ -146,8 +146,7 @@ init_onchip_IRQ(struct device_node *intc, struct device_node *parent)
        if (parent)
                panic("DeviceTree incore intc not a root irq controller\n");
 
-       root_domain = irq_domain_add_legacy(intc, NR_CPU_IRQS, 0, 0,
-                                           &arcv2_irq_ops, NULL);
+       root_domain = irq_domain_add_linear(intc, NR_CPU_IRQS, &arcv2_irq_ops, NULL);
        if (!root_domain)
                panic("root irq domain not avail\n");
 
@@ -157,6 +156,9 @@ init_onchip_IRQ(struct device_node *intc, struct device_node *parent)
         */
        irq_set_default_host(root_domain);
 
+#ifdef CONFIG_SMP
+       irq_create_mapping(root_domain, IPI_IRQ);
+#endif
        return 0;
 }
 
index 48a8b24de23eebde39ac935d70bede858c18c955..c5cceca36118744f8c06359bc060f250974313df 100644 (file)
@@ -105,7 +105,7 @@ init_onchip_IRQ(struct device_node *intc, struct device_node *parent)
        if (parent)
                panic("DeviceTree incore intc not a root irq controller\n");
 
-       root_domain = irq_domain_add_legacy(intc, NR_CPU_IRQS, 0, 0,
+       root_domain = irq_domain_add_linear(intc, NR_CPU_IRQS,
                                            &arc_intc_domain_ops, NULL);
        if (!root_domain)
                panic("root irq domain not avail\n");