patch-2.4.25 linux-2.4.25/arch/i386/kernel/mpparse.c

Next file: linux-2.4.25/arch/i386/kernel/process.c
Previous file: linux-2.4.25/arch/i386/kernel/microcode.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/arch/i386/kernel/mpparse.c linux-2.4.25/arch/i386/kernel/mpparse.c
@@ -1280,8 +1280,14 @@
 
 	ioapic_pin = irq - mp_ioapic_routing[ioapic].irq_start;
 
+	/*
+	 * MPS INTI flags:
+	 *  trigger: 0=default, 1=edge, 3=level
+	 *  polarity: 0=default, 1=high, 3=low
+	 * Per ACPI spec, default for SCI means level/low.
+	 */
 	io_apic_set_pci_routing(ioapic, ioapic_pin, irq, 
-				(flags.trigger >> 1) , (flags.polarity >> 1));
+		(flags.trigger == 1 ? 0 : 1), (flags.polarity == 1 ? 0 : 1));
 }
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)