Skip to content

Commit

Permalink
tile: Make tile use the new is_idle_task() API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul E. McKenney authored and Paul E. McKenney committed Dec 11, 2011
1 parent 77aeeeb commit a95f881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/tile/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -515,7 +515,7 @@ static int handle_page_fault(struct pt_regs *regs,

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");
}

/*
Expand Down

0 comments on commit a95f881

Please sign in to comment.