summaryrefslogtreecommitdiffstats
path: root/include/ipmi.h
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2015-09-04 16:55:09 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-09-09 15:17:56 +1000
commit425a89ba2f4264a9215b176fe7b2ebf38a29cf09 (patch)
treedcf9ac180596c3bcd217302576e36dfd0ad00c0d /include/ipmi.h
parent87edc3d8c87f113ec2a6d92c71fa25473cb8cec6 (diff)
downloadblackbird-skiboot-425a89ba2f4264a9215b176fe7b2ebf38a29cf09.tar.gz
blackbird-skiboot-425a89ba2f4264a9215b176fe7b2ebf38a29cf09.zip
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/ipmi.h')
-rw-r--r--include/ipmi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ipmi.h b/include/ipmi.h
index 54c415b2..a1a236d4 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);
OpenPOWER on IntegriCloud