diff mbox series

[v3,12/13] hw/bt: Allow ipmi regular intervals

Message ID 1578338508-13424-13-git-send-email-debmc@linux.ibm.com
State New, archived
Headers show
Series ipmi-hiomap: Enablement for Async opal_flash_op's | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch warning Failed to apply on branch master (d75e82dbfbb9443efeb3f9a5921ac23605aab469)
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch

Commit Message

Deb McLemore Jan. 6, 2020, 7:21 p.m. UTC
Found during investigation of slow ipmi messages in OPAL_FLASH_READ/WRITE
operations.

When bt irqs are operational perform default timer scheduling.

Signed-off-by: Deb McLemore <debmc@linux.ibm.com>
---
 hw/bt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/hw/bt.c b/hw/bt.c
index 824a1f2..72393a2 100644
--- a/hw/bt.c
+++ b/hw/bt.c
@@ -518,7 +518,7 @@  static void bt_poll(struct timer *t __unused, void *data __unused,
 	bt_send_and_unlock();
 
 	schedule_timer(&bt.poller,
-		       bt.irq_ok ? TIMER_POLL : msecs_to_tb(BT_DEFAULT_POLL_MS));
+		       bt.irq_ok ? msecs_to_tb(BT_DEFAULT_POLL_MS) : TIMER_POLL);
 }
 
 static void bt_ipmi_poll(void)