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

Function timestamp_should_run

src/lib/timestamp.c:66–76  ·  view source on GitHub ↗

Determine if one should proceed into timestamp code. This is for protecting * systems that have multiple processors running in romstage -- namely AMD * based x86 platforms. */

Source from the content-addressed store, hash-verified

64 * systems that have multiple processors running in romstage -- namely AMD
65 * based x86 platforms. */
66static int timestamp_should_run(void)
67{
68 /*
69 * Only check boot_cpu() in other stages than
70 * ENV_PAYLOAD_LOADER on x86.
71 */
72 if ((!ENV_PAYLOAD_LOADER && ENV_X86) && !boot_cpu())
73 return 0;
74
75 return 1;
76}
77
78static struct timestamp_table *timestamp_table_get(void)
79{

Callers 4

timestamp_addFunction · 0.85
timestamp_initFunction · 0.85
timestamp_reinitFunction · 0.85
timestamp_rescale_tableFunction · 0.85

Calls 1

boot_cpuFunction · 0.50

Tested by

no test coverage detected