]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi: Add a panic handler for IPMI users
authorCorey Minyard <cminyard@mvista.com>
Wed, 28 Mar 2018 18:19:25 +0000 (13:19 -0500)
committerCorey Minyard <cminyard@mvista.com>
Wed, 18 Apr 2018 15:22:47 +0000 (10:22 -0500)
commit4eb70aaaa1499672f0aeb21a2af16b3af8f9fbc8
treea9a811d798ce57a7c4cd48434b4e4e086e4a1c8e
parent4b90dccace6c11a76190c0cc5c79bdadb7b7c27b
ipmi: Add a panic handler for IPMI users

Users of the IPMI code had their own panic handlers, but the
order was not necessarily right, the base IPMI code would
need to handle the panic first, and the user had no way to
know if the IPMI interface could run at panic time.

Add a panic handler to the user interface, it is called if
non-NULL and the interface the user is on is capable of panic
handling.  It also cleans up the panic log handling a bit to
reuse the existing interface loop in the main panic handler.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c
include/linux/ipmi.h