]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: intel_telemetry: Add telemetry_get_pltdata()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 16 Apr 2020 08:15:50 +0000 (11:15 +0300)
committerLee Jones <lee.jones@linaro.org>
Fri, 24 Apr 2020 10:18:30 +0000 (11:18 +0100)
commit3461fd2b0882bc788bd8496905b36d1d3532244b
tree9265a6c9b98ee379cbc9eb3b063e6954abc04890
parentbadc430617d90e67d62df7d1ffe51ec7dc211f50
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>
arch/x86/include/asm/intel_telemetry.h
drivers/platform/x86/intel_telemetry_core.c
drivers/platform/x86/intel_telemetry_debugfs.c