Commit 273f2d7e authored by Kevin Cernekee's avatar Kevin Cernekee Committed by Ralf Baechle

MIPS: Install handlers for software IRQs

BMIPS4350/4380/5000 CMT/SMT all use SW INT0/INT1 for inter-thread
signaling.
Signed-off-by: default avatarKevin Cernekee <cernekee@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1709/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 565b60de
...@@ -103,14 +103,12 @@ void __init mips_cpu_irq_init(void) ...@@ -103,14 +103,12 @@ void __init mips_cpu_irq_init(void)
clear_c0_status(ST0_IM); clear_c0_status(ST0_IM);
clear_c0_cause(CAUSEF_IP); clear_c0_cause(CAUSEF_IP);
/* /* Software interrupts are used for MT/CMT IPI */
* Only MT is using the software interrupts currently, so we just for (i = irq_base; i < irq_base + 2; i++)
* leave them uninitialized for other processors. irq_set_chip_and_handler(i, cpu_has_mipsmt ?
*/ &mips_mt_cpu_irq_controller :
if (cpu_has_mipsmt) &mips_cpu_irq_controller,
for (i = irq_base; i < irq_base + 2; i++) handle_percpu_irq);
irq_set_chip_and_handler(i, &mips_mt_cpu_irq_controller,
handle_percpu_irq);
for (i = irq_base + 2; i < irq_base + 8; i++) for (i = irq_base + 2; i < irq_base + 8; i++)
irq_set_chip_and_handler(i, &mips_cpu_irq_controller, irq_set_chip_and_handler(i, &mips_cpu_irq_controller,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment