util/cbmem: fix an unused parameter issue in timestamp_get

Fix an unused parameter error when building on devices where __i386__
and __x86_64__ are not defined.

BUG=none
TEST=none

Change-Id: I6c04c8e7b931565c87d358aac1025ebcb7617b13
Signed-off-by: Nick Vaccaro <nvaccaro@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63880
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Nick Vaccaro 2022-04-26 17:14:03 -07:00
parent de05375bd9
commit 946e29258c
1 changed files with 2 additions and 0 deletions

View File

@ -559,6 +559,8 @@ static uint64_t timestamp_get(uint64_t table_tick_freq_mhz)
if (tsc_freq_khz) if (tsc_freq_khz)
return tsc * table_tick_freq_mhz * 1000 / tsc_freq_khz; return tsc * table_tick_freq_mhz * 1000 / tsc_freq_khz;
#else
(void)table_tick_freq_mhz;
#endif #endif
die("Don't know how to obtain timestamps on this platform.\n"); die("Don't know how to obtain timestamps on this platform.\n");
return 0; return 0;