[PATCH] MIPS: DEC: Do not set up the FPU interrupt if no FPU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Following the arrangement for processors that wire FPU exceptions to the
FPE CPU exception handle the case where no FPU is in use -- which for
DECstation systems will only ever happen when the "nofpu" kernel option
has been used -- do not register the FPU interrupt in such a case
either.

Signed-off-by: Maciej W. Rozycki <macro@xxxxxxxxxxxxxx>
---

 This trivially depends on linux-mips-dec-kstat_irq_fpu.patch.

linux-mips-dec-nofpu.patch
Index: linux-20150220-3maxp/arch/mips/dec/setup.c
===================================================================
--- linux-20150220-3maxp.orig/arch/mips/dec/setup.c
+++ linux-20150220-3maxp/arch/mips/dec/setup.c
@@ -758,7 +758,7 @@ void __init arch_init_irq(void)
 		dec_interrupt[DEC_IRQ_HALT] = -1;
 
 	/* Register board interrupts: FPU and cascade. */
-	if (dec_interrupt[DEC_IRQ_FPU] >= 0) {
+	if (dec_interrupt[DEC_IRQ_FPU] >= 0 && cpu_has_fpu) {
 		struct irq_desc *desc_fpu;
 		int irq_fpu;
 





[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux