tile: Make tile use the new is_idle_task() API
authorPaul E. McKenney <paul.mckenney@linaro.org>
Fri, 11 Nov 2011 00:16:13 +0000 (16:16 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 11 Dec 2011 18:31:55 +0000 (10:31 -0800)
Change from direct comparison of ->pid with zero to is_idle_task().

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/mm/fault.c

index 25b7b90fd62064b46cf6faf0204a7cbc78b28cc1..c1eaaa1fcc2089bed7d135875d9fe654d3254e0a 100644 (file)
@@ -54,7 +54,7 @@ static noinline void force_sig_info_fault(const char *type, int si_signo,
        if (unlikely(tsk->pid < 2)) {
                panic("Signal %d (code %d) at %#lx sent to %s!",
                      si_signo, si_code & 0xffff, address,
-                     tsk->pid ? "init" : "the idle task");
+                     is_idle_task(tsk) ? "the idle task" : "init");
        }
 
        info.si_signo = si_signo;
@@ -515,7 +515,7 @@ no_context:
 
        if (unlikely(tsk->pid < 2)) {
                panic("Kernel page fault running %s!",
-                     tsk->pid ? "init" : "the idle task");
+                     is_idle_task(tsk) ? "the idle task" : "init");
        }
 
        /*