diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2006-12-19 03:35:49 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-01-24 05:13:56 -0500 |
commit | 60bccbed6f53c953c62bdc2ac699395a13b6eecc (patch) | |
tree | a631e0dc5cd58d7bd7aa927b42df68fd7c712554 /arch/powerpc/kernel/traps.c | |
parent | ded84bcb246780137ecaa3f6d137ac1b0f06fd08 (diff) |
[POWERPC] Use is_init() instead of pid==1
Use is_init() rather than hard coded pid comparison.
Cc: Anton Blanchard <anton@samba.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/traps.c')
-rw-r--r-- | arch/powerpc/kernel/traps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index 535f50665647..6915b91868b8 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) | |||
174 | * generate the same exception over and over again and we get | 174 | * generate the same exception over and over again and we get |
175 | * nowhere. Better to kill it and let the kernel panic. | 175 | * nowhere. Better to kill it and let the kernel panic. |
176 | */ | 176 | */ |
177 | if (current->pid == 1) { | 177 | if (is_init(current)) { |
178 | __sighandler_t handler; | 178 | __sighandler_t handler; |
179 | 179 | ||
180 | spin_lock_irq(¤t->sighand->siglock); | 180 | spin_lock_irq(¤t->sighand->siglock); |