]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't try to stop the IPMI watchdog timer if it is not running.
authorjhb <jhb@FreeBSD.org>
Tue, 7 Aug 2012 12:40:31 +0000 (12:40 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 7 Aug 2012 12:40:31 +0000 (12:40 +0000)
commita39f96c4164e2535c1d49d7cf4aac785358dc5f0
treed310aff5128205757cfb0c6ce4eabf65fbc7459a
parent8a893b0e6815fac4cb8c165a1869b8b01883bcc0
Don't try to stop the IPMI watchdog timer if it is not running.
Starting or stopping the IPMI watchdog is rather expensive with the
current implementation as all IPMI requests are bounced via thread.
This is not viable during shutdown or dumps, and this avoids headache
in the common case that the watchdog is not enabled.  The IPMI watchdog
should probably be reworked to not use a separate thread to fix this
in the case when the watchdog timer is enabled.

MFC after: 2 weeks
sys/dev/ipmi/ipmi.c
sys/dev/ipmi/ipmivars.h