projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ded84bc
)
[POWERPC] Use is_init() instead of pid==1
author
Akinobu Mita
<akinobu.mita@gmail.com>
Tue, 19 Dec 2006 08:35:49 +0000
(17:35 +0900)
committer
Paul Mackerras
<paulus@samba.org>
Wed, 24 Jan 2007 10:13:56 +0000
(21:13 +1100)
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>
arch/powerpc/kernel/traps.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/traps.c
b/arch/powerpc/kernel/traps.c
index
535f506
..
6915b91
100644
(file)
--- 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);