cbmem: add indicator to hooks if cbmem is being recovered

It can be helpful to certain users of the cbmem init hooks
to know if recovery was done or not. Therefore, add this
as a parameter to the hooks.

Change-Id: I049fc191059cfdb8095986d3dc4eee9e25cf5452
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/10480
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Aaron Durbin
2015-06-09 13:54:10 -05:00
parent db23215039
commit 41607a4682
10 changed files with 16 additions and 13 deletions

View File

@ -157,7 +157,7 @@ void timestamp_init(uint64_t base)
#endif
}
static void timestamp_reinit(void)
static void timestamp_reinit(int is_recovery)
{
if (!timestamp_should_run())
return;