summaryrefslogtreecommitdiff
path: root/src/lib/timestamp.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2013-09-10 00:07:21 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2013-09-21 06:34:55 +0200
commitcbf5bdfe67e90f780b9f5b2f8cb9cd6e0d46682d (patch)
tree158bc3b636a9024843c2e88d5f487792d17736ff /src/lib/timestamp.c
parentde1fe7f655c549e8dce5b34218221890fa5ccc34 (diff)
downloadcoreboot-cbf5bdfe67e90f780b9f5b2f8cb9cd6e0d46682d.tar.xz
CBMEM: Always select CAR_MIGRATION
If romstage does not make cbmem_initialize() call, linker should optimize the code for CAR migration away. This simplifies design of CBMEM console by a considerable amount. As console buffer is now migrated within cbmem_initialize() call there is no longer need for cbmemc_reinit() call made at end of romstage. Change-Id: I8675ecaafb641fa02675e9ba3f374caa8e240f1d Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/3916 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
Diffstat (limited to 'src/lib/timestamp.c')
-rw-r--r--src/lib/timestamp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/timestamp.c b/src/lib/timestamp.c
index 63f17f7467..a9c354eb55 100644
--- a/src/lib/timestamp.c
+++ b/src/lib/timestamp.c
@@ -140,7 +140,7 @@ void timestamp_init(tsc_t base)
#endif
}
-void timestamp_sync(void)
+void timestamp_reinit(void)
{
if (!boot_cpu())
return;
@@ -154,3 +154,6 @@ void timestamp_sync(void)
if (ts_table)
timestamp_do_sync();
}
+
+/* Call timestamp_reinit at CAR migration time. */
+CAR_MIGRATE(timestamp_reinit)