]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commite1891cffd4c4896a899337a243273f0e23c028df
tree3679ca805968f0b44be99444a151cccb4545c378
parentc65ea996595005be470fbfa16711deba414fd33b
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