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>
This commit is contained in:
Tero Kristo 2024-06-17 09:04:37 +03:00 • committed by Ilpo Järvinen
commit 69207a0f17
No known key found for this signature in database
GPG key ID: 59AC4F6153E5CE31
4 changed files with 45 additions and 34 deletions