diff options
| author | Simon Glass <[email protected]> | 2025-01-10 17:00:08 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-01-22 15:58:03 -0600 |
| commit | 9b35dbc93fd40daadf137ee430641d62b6b4d4b0 (patch) | |
| tree | bae7630fb09b7e8c3032fde199587a632194a9ec | |
| parent | 78bff2ebba9994a61ec8c0592d88ddb1d34c795b (diff) | |
x86: Show the timestamp counter with bdinfo
Add a line to the 'bdinfo' command which shows the current value of the
TSC.
Signed-off-by: Simon Glass <[email protected]>
| -rw-r--r-- | arch/x86/lib/bdinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/lib/bdinfo.c b/arch/x86/lib/bdinfo.c index bd2cf0b9fcb..4b016d4a0fc 100644 --- a/arch/x86/lib/bdinfo.c +++ b/arch/x86/lib/bdinfo.c @@ -33,6 +33,8 @@ void arch_print_bdinfo(void) bdinfo_print_num_l(" high start", gd->arch.table_start_high); bdinfo_print_num_l(" high end", gd->arch.table_end_high); + bdinfo_print_num_ll("tsc", rdtsc()); + if (IS_ENABLED(CONFIG_EFI_STUB)) efi_show_bdinfo(); } |
