aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/intel_telemetry.h
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2020-04-16 11:15:50 +0300
committerLee Jones <lee.jones@linaro.org>2020-04-24 11:18:30 +0100
commit0759a8730c7070299556af8dddeecce90955c8ae (patch)
tree9265a6c9b98ee379cbc9eb3b063e6954abc04890 /arch/x86/include/asm/intel_telemetry.h
parentplatform/x86: intel_pmc_ipc: Move PCI IDs to intel_scu_pcidrv.c (diff)
downloadlinux-dev-0759a8730c7070299556af8dddeecce90955c8ae.tar.xz
linux-dev-0759a8730c7070299556af8dddeecce90955c8ae.zip
platform/x86: intel_telemetry: Add telemetry_get_pltdata()
Add new function that allows telemetry modules to get pointer to the platform specific configuration. This is needed to allow the telemetry debugfs module to fetch PMC IPC instance in the subsequent patch. This also allows us to replace telemetry_pltconfig_valid() with telemetry_get_pltdata() as well. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'arch/x86/include/asm/intel_telemetry.h')
-rw-r--r--arch/x86/include/asm/intel_telemetry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/intel_telemetry.h b/arch/x86/include/asm/intel_telemetry.h
index 274aaf0dae48..2c0e7d7a10e9 100644
--- a/arch/x86/include/asm/intel_telemetry.h
+++ b/arch/x86/include/asm/intel_telemetry.h
@@ -95,7 +95,7 @@ int telemetry_set_pltdata(const struct telemetry_core_ops *ops,
int telemetry_clear_pltdata(void);
-int telemetry_pltconfig_valid(void);
+struct telemetry_plt_config *telemetry_get_pltdata(void);
int telemetry_get_evtname(enum telemetry_unit telem_unit,
const char **name, int len);