diff options
author | Alistair Popple <alistair@popple.id.au> | 2014-09-09 15:57:28 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-10-01 14:23:06 +1000 |
commit | 78a2da4ca3b5362b7b9ba5632e6d4287a3c3263e (patch) | |
tree | e95966cf69430852b3a54439f502d3b64072a98c /include/ipmi.h | |
parent | f671e7f9decd909afa784f974bbceb07189f38f4 (diff) | |
download | skiboot-78a2da4ca3b5362b7b9ba5632e6d4287a3c3263e.zip skiboot-78a2da4ca3b5362b7b9ba5632e6d4287a3c3263e.tar.gz skiboot-78a2da4ca3b5362b7b9ba5632e6d4287a3c3263e.tar.bz2 |
bt/ipmi: Convert to using asynchronous messaging
Previously we were doing synchronous messaging and cranking the bt
state machine from within OPAL. This was not ideal as it could
potentially take control away from the OS for long periods of
time if the BMC is busy. This patch solves the problem using the
opal_poll api to do asynchronous messaging.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/ipmi.h')
-rw-r--r-- | include/ipmi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ipmi.h b/include/ipmi.h index 78eb5cd..643dbf4 100644 --- a/include/ipmi.h +++ b/include/ipmi.h @@ -129,7 +129,8 @@ struct ipmi_msg *ipmi_mkmsg(int interface, uint32_t code, void *user_data, void *req_data, size_t req_size, size_t resp_size); -int ipmi_sync_queue_msg(struct ipmi_msg *msg); +/* Add an ipmi message to the queue */ +int ipmi_queue_msg(struct ipmi_msg *msg); /* Process a completed message */ void ipmi_cmd_done(struct ipmi_msg *msg); |