]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc/smp: No need to set_need_resched when getting a resched IPI
authorMilton Miller <miltonm@bga.com>
Fri, 10 Oct 2008 01:56:45 +0000 (01:56 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 13 Oct 2008 05:24:20 +0000 (16:24 +1100)
The comment in the code was asking "Do we have to do this?", and according
to x86 and s390 the answer is no, the scheduler will do it before calling
the arch hook.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/smp.c

index 5337ca7bb649b02999258143947751109fe6c585..3ee736fa8b1da74701b1499a9d9d1491cc989c66 100644 (file)
@@ -101,8 +101,7 @@ void smp_message_recv(int msg)
                generic_smp_call_function_interrupt();
                break;
        case PPC_MSG_RESCHEDULE:
-               /* XXX Do we have to do this? */
-               set_need_resched();
+               /* we notice need_resched on exit */
                break;
        case PPC_MSG_CALL_FUNC_SINGLE:
                generic_smp_call_function_single_interrupt();