summaryrefslogtreecommitdiff
path: root/src/include/elog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/elog.h')
-rw-r--r--src/include/elog.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/elog.h b/src/include/elog.h
index 9bb05ade3f..0574819e0d 100644
--- a/src/include/elog.h
+++ b/src/include/elog.h
@@ -274,6 +274,12 @@ static inline u32 boot_count_read(void)
#endif
u32 boot_count_increment(void);
+static inline void elog_boot_notify(int s3_resume)
+{
+ if (CONFIG(ELOG_BOOT_COUNT) && !s3_resume)
+ boot_count_increment();
+}
+
/*
* Callback from GSMI handler to allow platform to log any wake source
* information.