]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86/intel-uncore-freq: Use uncore_index with read_control_freq
authorTero Kristo <tero.kristo@linux.intel.com>
Mon, 17 Jun 2024 06:04:37 +0000 (09:04 +0300)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 18 Jun 2024 09:45:21 +0000 (12:45 +0300)
commit69207a0f17d4e5a9bdd9feeece26a84add305157
tree2f3f20f5a8f94dce21c8ab31357859f0077fe904
parent90583374f1a0951d563de50aeac6357b724d08f6
platform/x86/intel-uncore-freq: Use uncore_index with read_control_freq

Use the enumerated index for selecting the uncore driver parameter to
read, instead of reading everything. This is done in preparation to
expand the API to access more parameters later.

No functional change intended.

Signed-off-by: Tero Kristo <tero.kristo@linux.intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20240617060708.892981-5-tero.kristo@linux.intel.com
[ij: Removed underscores from variable names]
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.h
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c
drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c