diff options
author | Nick Vaccaro <nvaccaro@google.com> | 2022-04-26 17:14:03 -0700 |
---|---|---|
committer | Nick Vaccaro <nvaccaro@google.com> | 2022-04-27 00:32:29 +0000 |
commit | 946e29258c99b0174dbfd08c5075b4faefc3627d (patch) | |
tree | 106b89e5b682bf6b53914deff75ff1e1c4ad2c66 /util | |
parent | de05375bd9c29d393eda613b59d9704bda21b19d (diff) |
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>
Diffstat (limited to 'util')
-rw-r--r-- | util/cbmem/cbmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c index 748bc36453..15431f1d6e 100644 --- a/util/cbmem/cbmem.c +++ b/util/cbmem/cbmem.c @@ -559,6 +559,8 @@ static uint64_t timestamp_get(uint64_t table_tick_freq_mhz) if (tsc_freq_khz) return tsc * table_tick_freq_mhz * 1000 / tsc_freq_khz; +#else + (void)table_tick_freq_mhz; #endif die("Don't know how to obtain timestamps on this platform.\n"); return 0; |