From: Akinobu Mita Date: Tue, 19 Dec 2006 08:35:49 +0000 (+0900) Subject: [POWERPC] Use is_init() instead of pid==1 X-Git-Tag: v2.6.21-rc2~42^2~3^2~113 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=60bccbed6f53c953c62bdc2ac699395a13b6eecc;p=linux-2.6-omap-h63xx.git [POWERPC] Use is_init() instead of pid==1 Use is_init() rather than hard coded pid comparison. Cc: Anton Blanchard Signed-off-by: Akinobu Mita Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index 535f5066564..6915b91868b 100644 --- a/arch/powerpc/kernel/traps.c +++ b/arch/powerpc/kernel/traps.c @@ -174,7 +174,7 @@ void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr) * generate the same exception over and over again and we get * nowhere. Better to kill it and let the kernel panic. */ - if (current->pid == 1) { + if (is_init(current)) { __sighandler_t handler; spin_lock_irq(¤t->sighand->siglock);