CBMEM: Rename cbmem_reinit()
This function does not really initialize anything, but only checks for the TOC. Change-Id: I9d100d1823a0b630f5d1175e42a6a15f45266de4 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/4669 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
This commit is contained in:
@@ -119,7 +119,7 @@ static void cbmem_initialize_empty(void)
|
||||
};
|
||||
}
|
||||
|
||||
int cbmem_reinit(void)
|
||||
static int cbmem_check_toc(void)
|
||||
{
|
||||
uint64_t baseaddr, size;
|
||||
struct cbmem_entry *cbmem_toc;
|
||||
@@ -220,7 +220,7 @@ void *cbmem_find(u32 id)
|
||||
/* Returns True if it was not initialized before. */
|
||||
int cbmem_recovery(int is_wakeup)
|
||||
{
|
||||
int found = cbmem_reinit();
|
||||
int found = cbmem_check_toc();
|
||||
int wipe = 0;
|
||||
|
||||
/* CBMEM TOC is wiped clean when we are not waking up from S3
|
||||
|
Reference in New Issue
Block a user