platform/x86/intel-uncore-freq: Split common and enumeration part
authorSrinivas Pandruvada <srinivas.pandruvada@intel.com>
Fri, 4 Feb 2022 00:03:06 +0000 (16:03 -0800)
committerHans de Goede <hdegoede@redhat.com>
Thu, 17 Feb 2022 12:20:30 +0000 (13:20 +0100)
commitdbce412a7733bb7a763d99db413da22da72e3736
treef9829e8d4cc1a469290a54a48ec7ec66887d9fdb
parent414eef27283a2133a0998beb8e3e35f84eaac961
platform/x86/intel-uncore-freq: Split common and enumeration part

Split the current driver in two parts:
- Common part: All the commom function other than enumeration function.
- Enumeration/HW specific part: The current enumeration using CPU model
is left in the old module. This uses service of common driver to register
sysfs objects. Also provide callbacks for MSR access related to uncore.
- Add MODULE_DEVICE_TABLE to uncore-frequency.c

No functional changes are expected.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20220204000306.2517447-5-srinivas.pandruvada@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/uncore-frequency/Makefile
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c [new file with mode: 0644]
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.h [new file with mode: 0644]
drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c