diff options
author | Michael Holzheu <holzheu@de.ibm.com> | 2008-01-26 08:11:11 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-01-26 08:11:19 -0500 |
commit | 99ca4e582d4a4088969681efff97be44d98421a1 (patch) | |
tree | f6478bcdc30d84cc6f67485bd78c9ba54827e07e /include | |
parent | ceb3dfbae1d3faacaedfc64c913fd18cd3624f72 (diff) |
[S390] kernel: Shutdown Actions Interface
In case of a kernel panic it is currently possible to specify that a dump
should be created, the system should be rebooted or stopped. Virtual sysfs
files under the directory /sys/firmware/ are used for that configuration.
In addition to that, there are kernel parameters 'vmhalt', 'vmpoff'
and 'vmpanic', which can be used to specify z/VM commands, which are
automatically executed in case of halt, power off or a kernel panic.
This patch combines both functionalities and allows to specify the z/VM CP
commands also via sysfs attributes. In addition to that, it enhances the
existing handling of shutdown triggers (e.g. halt or panic) and associated
shutdown actions (e.g. dump or reipl) and makes it more flexible.
Signed-off-by: Michael Holzheu <holzheu@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-s390/ipl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-s390/ipl.h b/include/asm-s390/ipl.h index 2c40fd3a137f..d0dcc9c5f7c3 100644 --- a/include/asm-s390/ipl.h +++ b/include/asm-s390/ipl.h | |||
@@ -83,6 +83,8 @@ extern u32 dump_prefix_page; | |||
83 | extern unsigned int zfcpdump_prefix_array[]; | 83 | extern unsigned int zfcpdump_prefix_array[]; |
84 | 84 | ||
85 | extern void do_reipl(void); | 85 | extern void do_reipl(void); |
86 | extern void do_halt(void); | ||
87 | extern void do_poff(void); | ||
86 | extern void ipl_save_parameters(void); | 88 | extern void ipl_save_parameters(void); |
87 | 89 | ||
88 | enum { | 90 | enum { |
@@ -118,7 +120,7 @@ struct ipl_info | |||
118 | }; | 120 | }; |
119 | 121 | ||
120 | extern struct ipl_info ipl_info; | 122 | extern struct ipl_info ipl_info; |
121 | extern void setup_ipl_info(void); | 123 | extern void setup_ipl(void); |
122 | 124 | ||
123 | /* | 125 | /* |
124 | * DIAG 308 support | 126 | * DIAG 308 support |