ARC: [plat-arcfpga] No need for init_irq hack
authorVineet Gupta <vgupta@synopsys.com>
Wed, 25 Jun 2014 11:53:38 +0000 (17:23 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 23 Jul 2014 05:51:10 +0000 (11:21 +0530)
With all IRQs unmasked by default on all cores, it is no longer needed
to unmask them explicitly.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/plat-arcfpga/Makefile
arch/arc/plat-arcfpga/include/plat/irq.h
arch/arc/plat-arcfpga/irq.c [deleted file]
arch/arc/plat-arcfpga/platform.c

index 4d1bddc34b5b531076ef05ea89206a6b75c4ef86..66fd0ecd68b302b676565a6aed84ed55f0b0f654 100644 (file)
@@ -8,5 +8,5 @@
 
 KBUILD_CFLAGS  += -Iarch/arc/plat-arcfpga/include
 
-obj-y := platform.o irq.o
+obj-y := platform.o
 obj-$(CONFIG_ISS_SMP_EXTN)             += smp.o
index 6adbc53c3a5b21e658cc5f03c06604d7c0b4412d..2c9dea690ac47f295a41b34f44ba9434ea72386a 100644 (file)
@@ -24,6 +24,4 @@
 #define IDU_INTERRUPT_0 16
 #endif
 
-extern void __init plat_fpga_init_IRQ(void);
-
 #endif
diff --git a/arch/arc/plat-arcfpga/irq.c b/arch/arc/plat-arcfpga/irq.c
deleted file mode 100644 (file)
index d2215fd..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * ARC FPGA Platform IRQ hookups
- *
- * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-
-#include <linux/interrupt.h>
-#include <plat/irq.h>
-
-void __init plat_fpga_init_IRQ(void)
-{
-       /*
-        * SMP Hack because UART IRQ hardwired to cpu0 (boot-cpu) but if the
-        * request_irq() comes from any other CPU, the low level IRQ unamsking
-        * essential for getting Interrupts won't be enabled on cpu0, locking
-        * up the UART state machine.
-        */
-#ifdef CONFIG_SMP
-       arch_unmask_irq(UART0_IRQ);
-#endif
-}
index 61c7e5997387bc1292cf05b1de81297856aa5865..8c643c2967df149b55e30f8e86337333819b9cd3 100644 (file)
@@ -150,7 +150,6 @@ MACHINE_START(ANGEL4, "angel4")
        .dt_compat      = aa4_compat,
        .init_early     = plat_fpga_early_init,
        .init_machine   = plat_fpga_populate_dev,
-       .init_irq       = plat_fpga_init_IRQ,
 #ifdef CONFIG_ISS_SMP_EXTN
        .init_smp       = iss_model_init_smp,
 #endif
@@ -165,7 +164,6 @@ MACHINE_START(ML509, "ml509")
        .dt_compat      = ml509_compat,
        .init_early     = plat_fpga_early_init,
        .init_machine   = plat_fpga_populate_dev,
-       .init_irq       = plat_fpga_init_IRQ,
 #ifdef CONFIG_SMP
        .init_smp       = iss_model_init_smp,
 #endif
@@ -180,5 +178,4 @@ MACHINE_START(NSIMOSCI, "nsimosci")
        .dt_compat      = nsimosci_compat,
        .init_early     = NULL,
        .init_machine   = plat_fpga_populate_dev,
-       .init_irq       = NULL,
 MACHINE_END