[PATCH] Add emergency_restart()
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 26 Jul 2005 17:29:55 +0000 (11:29 -0600)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Jul 2005 21:35:41 +0000 (14:35 -0700)
commit7c9034735eccbf82608a4602c59aaf6053ea9416
tree219e8cd4b5cfffeb261f42a2bd8e512be19cba40
parentabcd9e51f5b832439b119d530db1353c12fd4073
[PATCH] Add emergency_restart()

When the kernel is working well and we want to restart cleanly
kernel_restart is the function to use.   But in many instances
the kernel wants to reboot when thing are expected to be working
very badly such as from panic or a software watchdog handler.

This patch adds the function emergency_restart() so that
callers can be clear what semantics they expect when calling
restart.  emergency_restart() is expected to be callable
from interrupt context and possibly reliable in even more
trying circumstances.

This is an initial generic implementation for all architectures.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
27 files changed:
include/asm-alpha/emergency-restart.h [new file with mode: 0644]
include/asm-arm/emergency-restart.h [new file with mode: 0644]
include/asm-arm26/emergency-restart.h [new file with mode: 0644]
include/asm-cris/emergency-restart.h [new file with mode: 0644]
include/asm-frv/emergency-restart.h [new file with mode: 0644]
include/asm-generic/emergency-restart.h [new file with mode: 0644]
include/asm-h8300/emergency-restart.h [new file with mode: 0644]
include/asm-i386/emergency-restart.h [new file with mode: 0644]
include/asm-ia64/emergency-restart.h [new file with mode: 0644]
include/asm-m32r/emergency-restart.h [new file with mode: 0644]
include/asm-m68k/emergency-restart.h [new file with mode: 0644]
include/asm-m68knommu/emergency-restart.h [new file with mode: 0644]
include/asm-mips/emergency-restart.h [new file with mode: 0644]
include/asm-parisc/emergency-restart.h [new file with mode: 0644]
include/asm-ppc/emergency-restart.h [new file with mode: 0644]
include/asm-ppc64/emergency-restart.h [new file with mode: 0644]
include/asm-s390/emergency-restart.h [new file with mode: 0644]
include/asm-sh/emergency-restart.h [new file with mode: 0644]
include/asm-sh64/emergency-restart.h [new file with mode: 0644]
include/asm-sparc/emergency-restart.h [new file with mode: 0644]
include/asm-sparc64/emergency-restart.h [new file with mode: 0644]
include/asm-um/emergency-restart.h [new file with mode: 0644]
include/asm-v850/emergency-restart.h [new file with mode: 0644]
include/asm-x86_64/emergency-restart.h [new file with mode: 0644]
include/asm-xtensa/emergency-restart.h [new file with mode: 0644]
include/linux/reboot.h
kernel/sys.c