aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/elog/elog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c
index 85198e2145..77019065ed 100644
--- a/src/drivers/elog/elog.c
+++ b/src/drivers/elog/elog.c
@@ -622,6 +622,9 @@ int elog_init(void)
if (!acpi_is_wakeup_s3())
#endif
elog_add_event_dword(ELOG_TYPE_BOOT, boot_count_read());
+#else
+ /* If boot count is not implemented, fake it. */
+ elog_add_event_dword(ELOG_TYPE_BOOT, 0);
#endif
#if CONFIG_ARCH_X86