arch/x86/cpu: move cpuid_match to corresponding header file
Since the functionality of cpuid_match is also useful outside of arch/x86/cpu.c and it's a relatively simple function, move its definition as inline function to the header file. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ic96746b33b01781543f60cf91904af35418e572d Reviewed-on: https://review.coreboot.org/c/coreboot/+/72859 Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@ -188,11 +188,6 @@ static void identify_cpu(struct device *cpu)
|
||||
}
|
||||
}
|
||||
|
||||
static bool cpuid_match(uint32_t a, uint32_t b, uint32_t mask)
|
||||
{
|
||||
return (a & mask) == (b & mask);
|
||||
}
|
||||
|
||||
struct cpu_driver *find_cpu_driver(struct device *cpu)
|
||||
{
|
||||
struct cpu_driver *driver;
|
||||
|
Reference in New Issue
Block a user