]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi: Make the smi watcher be disabled immediately when not needed
authorCorey Minyard <cminyard@mvista.com>
Wed, 24 Oct 2018 20:17:04 +0000 (15:17 -0500)
committerCorey Minyard <cminyard@mvista.com>
Sun, 10 Feb 2019 01:48:42 +0000 (19:48 -0600)
commit8ac521a397c074ced5e723bc26e2138bf6d4b58a
tree3679ca805968f0b44be99444a151cccb4545c378
parent22085edc1b33df2e02bf2eef22f993554b2fa458
ipmi: Make the smi watcher be disabled immediately when not needed

The code to tell the lower layer to enable or disable watching for
certain things was lazy in disabling, it waited until a timer tick
to see if a disable was necessary.  Not a really big deal, but it
could be improved.

Modify the code to enable and disable watching immediately and don't
do it from the background timer any more.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Tested-by: Kamlakant Patel <kamlakant.patel@cavium.com>
drivers/char/ipmi/ipmi_msghandler.c
drivers/char/ipmi/ipmi_si_intf.c
drivers/char/ipmi/ipmi_ssif.c
include/linux/ipmi_smi.h