Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a95f8817 authored by Paul E. McKenney's avatar Paul E. McKenney Committed by Paul E. McKenney
Browse files

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: default avatarPaul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Acked-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent 77aeeebd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 @@ 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");
	}

	/*