diff options
author | Corey Minyard <cminyard@mvista.com> | 2018-10-24 15:17:04 -0500 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2019-02-09 19:48:42 -0600 |
commit | e1891cffd4c4896a899337a243273f0e23c028df (patch) | |
tree | 3679ca805968f0b44be99444a151cccb4545c378 /drivers/char/ipmi/ipmi_si_intf.c | |
parent | c65ea996595005be470fbfa16711deba414fd33b (diff) | |
download | linux-stable-e1891cffd4c4896a899337a243273f0e23c028df.tar.gz linux-stable-e1891cffd4c4896a899337a243273f0e23c028df.tar.bz2 linux-stable-e1891cffd4c4896a899337a243273f0e23c028df.zip |
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>
Diffstat (limited to 'drivers/char/ipmi/ipmi_si_intf.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index c81c84a723b6..ae99d6a14789 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c @@ -1066,7 +1066,7 @@ static void set_need_watch(void *send_info, unsigned int watch_mask) unsigned long flags; int enable; - enable = !!(watch_mask & ~IPMI_WATCH_MASK_INTERNAL); + enable = !!watch_mask; atomic_set(&smi_info->need_watch, enable); spin_lock_irqsave(&smi_info->si_lock, flags); |