diff options
author | Corey Minyard <cminyard@mvista.com> | 2007-10-18 06:07:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-18 17:37:32 -0400 |
commit | fcfa4724116589d6a5fac92af410b6f12d41b5bb (patch) | |
tree | e709e6e51e8475836f56478a4645bbeeb8daf134 /drivers/char/ipmi/ipmi_msghandler.c | |
parent | 650dd0c7faf8126aaa261833dc9171a070deeaf3 (diff) |
IPMI: add polled interface
Currently the IPMI watchdog timer sets the watchdog timeout on a panic, but it
doesn't actually poll the interface to make sure the message goes out.
Add an interface for polling the IPMI driver, and add code to the IPMI
watchdog timer to poll the interface when the timer is set from a panic.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/ipmi/ipmi_msghandler.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_msghandler.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index 8435fba73daf..46d14ac16212 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c | |||
@@ -2614,6 +2614,14 @@ channel_handler(ipmi_smi_t intf, struct ipmi_recv_msg *msg) | |||
2614 | return; | 2614 | return; |
2615 | } | 2615 | } |
2616 | 2616 | ||
2617 | void ipmi_poll_interface(ipmi_user_t user) | ||
2618 | { | ||
2619 | ipmi_smi_t intf = user->intf; | ||
2620 | |||
2621 | if (intf->handlers->poll) | ||
2622 | intf->handlers->poll(intf->send_info); | ||
2623 | } | ||
2624 | |||
2617 | int ipmi_register_smi(struct ipmi_smi_handlers *handlers, | 2625 | int ipmi_register_smi(struct ipmi_smi_handlers *handlers, |
2618 | void *send_info, | 2626 | void *send_info, |
2619 | struct ipmi_device_id *device_id, | 2627 | struct ipmi_device_id *device_id, |
@@ -4166,6 +4174,7 @@ EXPORT_SYMBOL(ipmi_destroy_user); | |||
4166 | EXPORT_SYMBOL(ipmi_get_version); | 4174 | EXPORT_SYMBOL(ipmi_get_version); |
4167 | EXPORT_SYMBOL(ipmi_request_settime); | 4175 | EXPORT_SYMBOL(ipmi_request_settime); |
4168 | EXPORT_SYMBOL(ipmi_request_supply_msgs); | 4176 | EXPORT_SYMBOL(ipmi_request_supply_msgs); |
4177 | EXPORT_SYMBOL(ipmi_poll_interface); | ||
4169 | EXPORT_SYMBOL(ipmi_register_smi); | 4178 | EXPORT_SYMBOL(ipmi_register_smi); |
4170 | EXPORT_SYMBOL(ipmi_unregister_smi); | 4179 | EXPORT_SYMBOL(ipmi_unregister_smi); |
4171 | EXPORT_SYMBOL(ipmi_register_for_cmd); | 4180 | EXPORT_SYMBOL(ipmi_register_for_cmd); |