[Skiboot] [PATCH 05/12] qemu: 1ms heartbeat time

Deb McLemore debmc at linux.ibm.com
Fri Oct 18 08:53:18 AEDT 2019


From: Stewart Smith <stewart at linux.ibm.com>

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

diff --git a/platforms/qemu/qemu.c b/platforms/qemu/qemu.c
index 757c086..71be716 100644
--- a/platforms/qemu/qemu.c
+++ b/platforms/qemu/qemu.c
@@ -42,6 +42,14 @@ static bool qemu_probe_powernv9(void)
 	return qemu_probe_common("qemu,powernv9");
 }
 
+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) {
@@ -60,6 +68,7 @@ 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.7.4



More information about the Skiboot mailing list