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 /core/ipmi.c | |
parent | f671e7f9decd909afa784f974bbceb07189f38f4 (diff) | |
download | blackbird-skiboot-78a2da4ca3b5362b7b9ba5632e6d4287a3c3263e.tar.gz blackbird-skiboot-78a2da4ca3b5362b7b9ba5632e6d4287a3c3263e.zip |
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 'core/ipmi.c')
-rw-r--r-- | core/ipmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ipmi.c b/core/ipmi.c index 90d8aaf3..488e7e92 100644 --- a/core/ipmi.c +++ b/core/ipmi.c @@ -63,7 +63,7 @@ struct ipmi_msg *ipmi_mkmsg(int interface, uint32_t code, return msg; } -int ipmi_sync_queue_msg(struct ipmi_msg *msg) +int ipmi_queue_msg(struct ipmi_msg *msg) { /* Here we could choose which interface to use if we want to support multiple interfaces. */ |