diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/amd/common/block/cpu/tsc/tsc_freq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/soc/amd/common/block/cpu/tsc/tsc_freq.c b/src/soc/amd/common/block/cpu/tsc/tsc_freq.c index f177b77673..40bac9df3a 100644 --- a/src/soc/amd/common/block/cpu/tsc/tsc_freq.c +++ b/src/soc/amd/common/block/cpu/tsc/tsc_freq.c @@ -7,8 +7,6 @@ #include <console/console.h> #include <soc/msr.h> -static unsigned long mhz; - /* Use this default TSC frequency when it can not be correctly calculated. Higher numbers are safer as it will result in longer delays using TSC */ #define TSC_DEFAULT_FREQ_MHZ 4000 @@ -17,6 +15,7 @@ unsigned long tsc_freq_mhz(void) { union pstate_msr pstate_reg; uint8_t high_state; + static unsigned long mhz; if (mhz) return mhz; |