diff mbox series

[RFC,5/6] qemu: 1ms heartbeat time

Message ID 20190228061826.28305-6-stewart@linux.ibm.com
State RFC
Headers show
Series Real Asynchronous flash access | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success master/apply_patch Successfully applied
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Stewart Smith Feb. 28, 2019, 6:18 a.m. UTC
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
---
 platforms/qemu/qemu.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox series

Patch

diff --git a/platforms/qemu/qemu.c b/platforms/qemu/qemu.c
index 04bf3fb3f0ea..dab3fc8ede87 100644
--- a/platforms/qemu/qemu.c
+++ b/platforms/qemu/qemu.c
@@ -40,6 +40,15 @@  static bool qemu_probe(void)
 	return true;
 }
 
+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) {
@@ -58,5 +67,6 @@  DECLARE_PLATFORM(qemu) = {
 	.cec_reboot     = astbmc_ipmi_reboot,
 	.start_preload_resource	= flash_start_preload_resource,
 	.resource_loaded	= flash_resource_loaded,
+	.heartbeat_time		= qemu_heartbeat_time,
 	.terminate	= ipmi_terminate,
 };