]> git.hungrycats.org Git - linux/commitdiff
[PATCH] alpha: cpu mask fix-ups broke SMP DP264 machines in 2.6.8
authorAli Saidi <saidi@umich.edu>
Sat, 9 Oct 2004 08:05:14 +0000 (01:05 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 9 Oct 2004 08:05:14 +0000 (01:05 -0700)
The cpu mask fix-ups in 2.6.8 broke SMP kernels booting on a DP264.
Instead of not setting the DIM for cpus that did not exit, the patch
inadvertently doesn't set the DIM for CPUs that do exist.  Thus no device
interrupts get to the cpu.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/alpha/kernel/sys_dp264.c

index c04336ef0d939c656c635cc0973f3bfd344c6f90..10973586f592464c5b6df735a333690a23f0a9c8 100644 (file)
@@ -71,10 +71,10 @@ tsunami_update_irq_hw(unsigned long mask)
        dim1 = &cchip->dim1.csr;
        dim2 = &cchip->dim2.csr;
        dim3 = &cchip->dim3.csr;
-       if (cpu_possible(0)) dim0 = &dummy;
-       if (cpu_possible(1)) dim1 = &dummy;
-       if (cpu_possible(2)) dim2 = &dummy;
-       if (cpu_possible(3)) dim3 = &dummy;
+       if (!cpu_possible(0)) dim0 = &dummy;
+       if (!cpu_possible(1)) dim1 = &dummy;
+       if (!cpu_possible(2)) dim2 = &dummy;
+       if (!cpu_possible(3)) dim3 = &dummy;
 
        *dim0 = mask0;
        *dim1 = mask1;