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. */
| 64 | * systems that have multiple processors running in romstage -- namely AMD |
| 65 | * based x86 platforms. */ |
| 66 | static 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 | |
| 78 | static struct timestamp_table *timestamp_table_get(void) |
| 79 | { |
no test coverage detected