x86/cpu: Move intel_get_platform_id() to cpu/intel.c

It is not only used in the microcode loader anymore and the platform ID is
cached in the cpuinfo_x86 structure so move the getter to Intel CPU-specific
code.

No functional changes.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/all/20260430020953.1405535-1-binbin.wu@linux.intel.com
This commit is contained in:
Borislav Petkov 2026-05-13 22:07:13 +02:00 • committed by Borislav Petkov (AMD)
commit 77d34d3950
4 changed files with 36 additions and 38 deletions