Add method for delaying adding of timestamps
commit4221a195745837b05725d7ffeda415516ac44a7f
authorStefan Reinauer <reinauer@chromium.org>
Mon, 15 Oct 2012 22:23:20 +0000 (15 15:23 -0700)
committerRonald G. Minnich <rminnich@gmail.com>
Tue, 13 Nov 2012 17:24:53 +0000 (13 18:24 +0100)
tree6d0c641d636d3cb576daf49ba57c3c94cea081f5
parent7004b7c9e61640f1e7e7bf9043bf7b2a8603d956
Add method for delaying adding of timestamps

In hardwaremain() we can't add timestamps before we actually
reinitialized the cbmem area. Hence we kept the timestamps in
an array and added them later. This is ugly and intrusive and
helped hiding a bug that prevented any timestamps to be logged
in hardwaremain() when coming out of an S3 resume.

The problem is solved by moving the logic to keep a few timestamps
around into the timestamp code. This also gets rid of a lot of ugly
ifdefs in hardwaremain.c

Change-Id: I945fc4c77e990f620c18cbd054ccd87e746706ef
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/1785
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
src/boot/hardwaremain.c
src/include/timestamp.h
src/lib/timestamp.c