[coreboot-gerrit] Change in coreboot[master]: include: Deactivate timestamp functions if kconfig option not set

Philipp Deppenwiese (Code Review) gerrit at coreboot.org
Tue Oct 24 15:11:21 CEST 2017


Philipp Deppenwiese has uploaded this change for review. ( https://review.coreboot.org/22147


Change subject: include: Deactivate timestamp functions if kconfig option not set
......................................................................

include: Deactivate timestamp functions if kconfig option not set

If CONFIG_COLLECT_TIMESTAMPS not set all timestamp
functions should be deactivated by using the pre-processor.

Change-Id: I8ac63ba7e4485e26dc35fb5a68b1811f6df2f91d
Signed-off-by: Philipp Deppenwiese <zaolin at das-labor.org>
---
M src/include/timestamp.h
1 file changed, 4 insertions(+), 4 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/22147/1

diff --git a/src/include/timestamp.h b/src/include/timestamp.h
index db675b5..89fe24c 100644
--- a/src/include/timestamp.h
+++ b/src/include/timestamp.h
@@ -50,10 +50,10 @@
 uint32_t get_us_since_boot(void);
 
 #else
-#define timestamp_init(base)
-#define timestamp_add(id, time)
-#define timestamp_add_now(id)
-#define timestamp_rescale_table(N, M)
+#define timestamp_init() 0
+#define timestamp_add() 0
+#define timestamp_add_now() 0
+#define timestamp_rescale_table() 0
 #define get_us_since_boot() 0
 #endif
 

-- 
To view, visit https://review.coreboot.org/22147
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8ac63ba7e4485e26dc35fb5a68b1811f6df2f91d
Gerrit-Change-Number: 22147
Gerrit-PatchSet: 1
Gerrit-Owner: Philipp Deppenwiese <zaolin.daisuki at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171024/e180df65/attachment-0001.html>


More information about the coreboot-gerrit mailing list