]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/cpu: Introduce new microcode matching helper
authorDave Hansen <dave.hansen@linux.intel.com>
Fri, 13 Dec 2024 18:51:28 +0000 (10:51 -0800)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 18 Dec 2024 00:14:39 +0000 (16:14 -0800)
commitb8e10c86e674eb19e0e53dcf4fa3e71cba1e0c1c
tree4299fe7d707ca22944bd4cdec5d970d8004fa3b3
parent4bf610499c429fa0bfb3fa94be450f01016224c5
x86/cpu: Introduce new microcode matching helper

The 'x86_cpu_id' and 'x86_cpu_desc' structures are very similar and
need to be consolidated.  There is a microcode version matching
function for 'x86_cpu_desc' but not 'x86_cpu_id'.

Create one for 'x86_cpu_id'.

This essentially just leverages the x86_cpu_id->driver_data field
to replace the less generic x86_cpu_desc->x86_microcode_rev field.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20241213185128.8F24EEFC%40davehans-spike.ostc.intel.com
arch/x86/include/asm/cpu_device_id.h
arch/x86/kernel/cpu/match.c