Skip to content

Commit a95f881

Browse files
Paul E. McKenneypaulmck
authored andcommitted
tile: Make tile use the new is_idle_task() API
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>
1 parent 77aeeeb commit a95f881

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/tile/mm/fault.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static noinline void force_sig_info_fault(const char *type, int si_signo,
5454
if (unlikely(tsk->pid < 2)) {
5555
panic("Signal %d (code %d) at %#lx sent to %s!",
5656
si_signo, si_code & 0xffff, address,
57-
tsk->pid ? "init" : "the idle task");
57+
is_idle_task(tsk) ? "the idle task" : "init");
5858
}
5959

6060
info.si_signo = si_signo;
@@ -515,7 +515,7 @@ static int handle_page_fault(struct pt_regs *regs,
515515

516516
if (unlikely(tsk->pid < 2)) {
517517
panic("Kernel page fault running %s!",
518-
tsk->pid ? "init" : "the idle task");
518+
is_idle_task(tsk) ? "the idle task" : "init");
519519
}
520520

521521
/*

0 commit comments

Comments
 (0)