summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2018-10-24 15:17:04 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-28 10:15:27 +0200
commitef198e3f8889db411df8950be6101b9a2e2d9be2 (patch)
tree1df5d4fd0abf204a1318d5bd453305b8cb7a2953 /include
parent2d933c34aa4076dff166eef73e205acd04ddd079 (diff)
ipmi: Make the smi watcher be disabled immediately when not needed
commit e1891cffd4c4896a899337a243273f0e23c028df upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ipmi_smi.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/include/linux/ipmi_smi.h b/include/linux/ipmi_smi.h
index 86b119400f30..75865064c70b 100644
--- a/include/linux/ipmi_smi.h
+++ b/include/linux/ipmi_smi.h
@@ -32,14 +32,11 @@ typedef struct ipmi_smi *ipmi_smi_t;
/*
* Flags for set_check_watch() below. Tells if the SMI should be
- * waiting for watchdog timeouts, commands and/or messages. There is
- * also an internal flag for the message handler, SMIs should ignore
- * it.
+ * waiting for watchdog timeouts, commands and/or messages.
*/
-#define IPMI_WATCH_MASK_INTERNAL (1 << 0)
-#define IPMI_WATCH_MASK_CHECK_MESSAGES (1 << 1)
-#define IPMI_WATCH_MASK_CHECK_WATCHDOG (1 << 2)
-#define IPMI_WATCH_MASK_CHECK_COMMANDS (1 << 3)
+#define IPMI_WATCH_MASK_CHECK_MESSAGES (1 << 0)
+#define IPMI_WATCH_MASK_CHECK_WATCHDOG (1 << 1)
+#define IPMI_WATCH_MASK_CHECK_COMMANDS (1 << 2)
/*
* Messages to/from the lower layer. The smi interface will take one
@@ -67,12 +64,6 @@ struct ipmi_smi_msg {
unsigned char rsp[IPMI_MAX_MSG_LENGTH];
/*
- * There should be a response message coming back in the BMC
- * message queue.
- */
- bool needs_response;
-
- /*
* Will be called when the system is done with the message
* (presumably to free it).
*/