[RFC][PATCH] fix target_cpus() for summit subarch

From: john stultz
Date: Fri Aug 27 2004 - 19:34:53 EST


I've been hunting down a bug affecting IBM x440/x445 systems where the
floppy driver would get spurious interrupts and would not initialize
properly.

After digging James Cleverdon pointed out that target_cpus() is routing
the interrupts to the clustered apic broadcast mask. This was causing
multiple interrupts to show up, breaking the floppy init code.

This one-liner fix simply routes interrupts to the first cpu to resolve
this issue.

Any comments or feedback would be appreciated.

thanks
-john

===== include/asm-i386/mach-summit/mach_apic.h 1.38 vs edited =====
--- 1.38/include/asm-i386/mach-summit/mach_apic.h 2004-06-24 01:55:52 -07:00
+++ edited/include/asm-i386/mach-summit/mach_apic.h 2004-08-27 16:43:22 -07:00
@@ -19,7 +19,7 @@

static inline cpumask_t target_cpus(void)
{
- return CPU_MASK_ALL;
+ return cpumask_of_cpu(0);
}
#define TARGET_CPUS (target_cpus())



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/