aboutsummaryrefslogtreecommitdiff
path: root/hw/ipmi
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2015-09-04 16:55:07 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-09-09 14:30:07 +1000
commitafb8c1be5e2dc0970f4184ca628926de1f49366c (patch)
tree5e7173197b9832b3d88556e8651debf735b9a9c3 /hw/ipmi
parent3066b4a07b5e83a868718f0bffbacfea19a89d44 (diff)
downloadskiboot-afb8c1be5e2dc0970f4184ca628926de1f49366c.zip
skiboot-afb8c1be5e2dc0970f4184ca628926de1f49366c.tar.gz
skiboot-afb8c1be5e2dc0970f4184ca628926de1f49366c.tar.bz2
IPMI: Insert SEL event to IPMI queue head
We log SEL event with eSEL record ID for every eSEL event. Presently SEL event is added to tail of IPMI queue. It works fine during normal event. But it fails in terminate immediate path...as reboot message will be called before SEL event. This patch adds message to head of IPMI queue.. so that we can log SEL event before sending reboot. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/ipmi')
-rw-r--r--hw/ipmi/ipmi-sel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c
index d711a1a..a124e8f 100644
--- a/hw/ipmi/ipmi-sel.c
+++ b/hw/ipmi/ipmi-sel.c
@@ -236,7 +236,7 @@ static void ipmi_log_sel_event(uint8_t event_severity, uint16_t esel_record_id)
}
msg->error = ipmi_log_sel_event_error;
- ipmi_queue_msg(msg);
+ ipmi_queue_msg_head(msg);
}
/* Goes through the required steps to add a complete eSEL: