]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r297179: Optimize IPMI watchdog patting.
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 5 Apr 2016 06:37:58 +0000 (06:37 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 5 Apr 2016 06:37:58 +0000 (06:37 +0000)
commit52229bc690a81a174793d6a5bcb792c016edecec
tree2f426752d38c33f00bf8ed934c15a6eb0d3b39f9
parentd94f12a3d6faf99a17f94c942084c6304720a7e3
MFC r297179: Optimize IPMI watchdog patting.

Set watchdog timer parameters only when they really need to be changed.
In other cases just restart the timer with single Reset command instead
of two (Set and Reset).

From one side this visually reduces amount of CPU time burned in tight
loop waiting while some slow BMC configures its watchdog hardware, that
seems to be much more complicated task then just resetting the timer.

From another side on some BMCs those slow Set commands sometimes tend to
timeout, that leads to noisy log messages and even more CPU time burned,
so avoiding them can provide even bigger bonuses.

git-svn-id: svn://svn.freebsd.org/base/stable/10@297574 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/ipmi/ipmi.c