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

Stewart Smith stewart at linux.ibm.com
Thu Feb 28 17:18:25 AEDT 2019


Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
---
 platforms/qemu/qemu.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

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,
 };
-- 
2.20.1



More information about the Skiboot mailing list