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)
commit91e2dd0a47bae19600f13dcc9e0761082c50afa6
treea9a811d798ce57a7c4cd48434b4e4e086e4a1c8e
parente2384917044ec27dd61acb9c3591eaa4c8fd4667
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