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

Deb McLemore debmc at linux.ibm.com
Tue Jan 7 06:21:40 AEDT 2020


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



More information about the Skiboot mailing list