diff mbox series

[v3,05/13] qemu: 1ms heartbeat time

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

Checks

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

Commit Message

Deb McLemore Jan. 6, 2020, 7:21 p.m. UTC
From: Stewart Smith <stewart@linux.ibm.com>

Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
---
 platforms/qemu/qemu.c | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/platforms/qemu/qemu.c b/platforms/qemu/qemu.c
index cbd6c27..8f7d942 100644
--- a/platforms/qemu/qemu.c
+++ b/platforms/qemu/qemu.c
@@ -75,6 +75,14 @@  static bool qemu_probe_powernv10(void)
 	return qemu_probe_common("qemu,powernv10");
 }
 
+static int qemu_heartbeat_time(void)
+{
+	/*
+	 * Fast polling to make up for lack of SBE timers
+	 */
+	return 1;
+}
+
 static void qemu_init(void)
 {
 	if (!bt_device_present) {
@@ -94,6 +102,7 @@  DECLARE_PLATFORM(qemu) = {
 	.pci_get_slot_info = slot_table_get_slot_info,
 	.start_preload_resource	= flash_start_preload_resource,
 	.resource_loaded	= flash_resource_loaded,
+	.heartbeat_time		= qemu_heartbeat_time,
 	.terminate	= ipmi_terminate,
 };