diff options
-rw-r--r-- | src/soc/intel/common/block/cse/telemetry.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/cse/telemetry.c b/src/soc/intel/common/block/cse/telemetry.c index 544de802d1..f3dd7ee819 100644 --- a/src/soc/intel/common/block/cse/telemetry.c +++ b/src/soc/intel/common/block/cse/telemetry.c @@ -6,7 +6,7 @@ #define MSEC_TO_USEC(x) (x * 1000) -void cse_get_telemetry_data(void) +static void cbmem_inject_telemetry_data(void) { struct cse_boot_perf_rsp cse_perf_data; s64 ts[NUM_CSE_BOOT_PERF_DATA] = {0}; @@ -72,3 +72,14 @@ void cse_get_telemetry_data(void) timestamp_add(TS_ME_RECEIVED_CRDA_FROM_PMC, start_stamp + ts[PERF_DATA_PMC_SENT_CRDA]); } + +void cse_get_telemetry_data(void) +{ + /* If CSE is already hidden then accessing CSE registers should be avoided */ + if (!is_cse_enabled()) { + printk(BIOS_DEBUG, "CSE is disabled, not sending `Get Boot Perf` message\n"); + return; + } + + cbmem_inject_telemetry_data(); +} |