MCPcopy Create free account
hub / github.com/coreboot/coreboot / timestamp_init

Function timestamp_init

src/lib/timestamp.c:147–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void timestamp_init(uint64_t base)
148{
149 struct timestamp_table *ts_cache;
150
151 assert(ENV_ROMSTAGE_OR_BEFORE);
152
153 if (!timestamp_should_run())
154 return;
155
156 ts_cache = timestamp_cache_get();
157
158 if (!ts_cache) {
159 printk(BIOS_ERR, "No timestamp cache to init\n");
160 return;
161 }
162
163 timestamp_cache_init(ts_cache, base);
164 timestamp_table_set(ts_cache);
165}
166
167static void timestamp_sync_cache_to_cbmem(struct timestamp_table *ts_cbmem_table)
168{

Callers 14

mainFunction · 0.85
romstageFunction · 0.85
mainFunction · 0.85
romstageFunction · 0.85
romstageFunction · 0.85
bootblock_mainFunction · 0.85
MainFunction · 0.85
tegra124_mainFunction · 0.85
test_timestamp_initFunction · 0.85
test_timestamp_addFunction · 0.85
test_timestamp_add_nowFunction · 0.85

Calls 5

timestamp_should_runFunction · 0.85
timestamp_cache_getFunction · 0.85
timestamp_cache_initFunction · 0.85
timestamp_table_setFunction · 0.85
printkFunction · 0.50

Tested by 5

test_timestamp_initFunction · 0.68
test_timestamp_addFunction · 0.68
test_timestamp_add_nowFunction · 0.68
test_get_us_since_bootFunction · 0.68