diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2015-09-04 16:55:09 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-09-09 15:17:56 +1000 |
commit | 425a89ba2f4264a9215b176fe7b2ebf38a29cf09 (patch) | |
tree | dcf9ac180596c3bcd217302576e36dfd0ad00c0d /include | |
parent | 87edc3d8c87f113ec2a6d92c71fa25473cb8cec6 (diff) | |
download | skiboot-425a89ba2f4264a9215b176fe7b2ebf38a29cf09.zip skiboot-425a89ba2f4264a9215b176fe7b2ebf38a29cf09.tar.gz skiboot-425a89ba2f4264a9215b176fe7b2ebf38a29cf09.tar.bz2 |
IPMI: Pre-allocate memory for PANIC event
Currently we allocate ipmi_msg for every eSEL event.. But in PANIC
its not advised to allocate memory. Hence pre-allocate ipmi_msg for
PANIC event.
Note that we continue to allocate memory for normal event. Also with
current implementation we can log only one eSEL event in PANIC path.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/ipmi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ipmi.h b/include/ipmi.h index 54c415b..a1a236d 100644 --- a/include/ipmi.h +++ b/include/ipmi.h @@ -230,6 +230,9 @@ int ipmi_set_fw_progress_sensor(uint8_t state); /* Register a backend with the ipmi core. Currently we only support one. */ void ipmi_register_backend(struct ipmi_backend *backend); +/* Allocate IPMI SEL panic message */ +void ipmi_sel_init(void); + /* Register rtc ipmi commands with as opal callbacks. */ void ipmi_rtc_init(void); |