]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc: Remove redundant xics badness warning
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 14 Jul 2010 08:48:13 +0000 (08:48 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 31 Jul 2010 04:56:31 +0000 (14:56 +1000)
While testing cpu offlining, we are regularly seeing the WARN_ON go off
in xics_ipi_dispatch. It can occur when an IPI gets sent to the CPU while
it is going offline. There is already a similar WARN_ON in the handlers
for PPC_MSG_CALL_FUNCTION and PPC_MSG_CALL_FUNC_SINGLE, so the warning
is not needed in that path. The debugger handler handles this case by
simply ignoring IPIs for offline CPUs, so no warning is needed there.
And the reschedule IPI, which is what is occurring in our test environment,
can be safely ignored, so we can simply remove the WARN_ON from xics_ipi_dispatch.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/xics.c

index f19d19468393db2cf001e28bcb76cdcab58f5614..5b22b07c8f67aa19da32832c6b553220445489ee 100644 (file)
@@ -549,8 +549,6 @@ static irqreturn_t xics_ipi_dispatch(int cpu)
 {
        unsigned long *tgt = &per_cpu(xics_ipi_message, cpu);
 
-       WARN_ON(cpu_is_offline(cpu));
-
        mb();   /* order mmio clearing qirr */
        while (*tgt) {
                if (test_and_clear_bit(PPC_MSG_CALL_FUNCTION, tgt)) {