timestamp: Allow timestamp_add to accept a negative number

Hardware / Coreboot - Bora Guvendik [intel.com] - 21 January 2022 22:42 UTC

Change timestamp_add to accept negative values for events that took place before coreboot started executing.

TEST=Boot to OS, check cbmem -t

bf73c498d4 timestamp: Allow timestamp_add to accept a negative number
src/commonlib/include/commonlib/timestamp_serialized.h | 2 +-
src/include/timestamp.h | 2 +-
src/lib/timestamp.c | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)

Upstream: review.coreboot.org


  • Share