mirror of
https://github.com/torvalds/linux.git
synced 2025-11-01 09:09:47 +02:00
x86/microcode/AMD: Get rid of __find_equiv_id()
Merge it into its only call site. No functional changes. Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20230227160352.7260-1-bp@alien8.de
This commit is contained in:
parent
ac9a78681b
commit
37a19366e1
1 changed files with 3 additions and 6 deletions
|
|
@ -596,11 +596,6 @@ void reload_ucode_amd(unsigned int cpu)
|
|||
}
|
||||
}
|
||||
}
|
||||
static u16 __find_equiv_id(unsigned int cpu)
|
||||
{
|
||||
struct ucode_cpu_info *uci = ucode_cpu_info + cpu;
|
||||
return find_equiv_id(&equiv_table, uci->cpu_sig.sig);
|
||||
}
|
||||
|
||||
/*
|
||||
* a small, trivial cache of per-family ucode patches
|
||||
|
|
@ -651,9 +646,11 @@ static void free_cache(void)
|
|||
|
||||
static struct ucode_patch *find_patch(unsigned int cpu)
|
||||
{
|
||||
struct ucode_cpu_info *uci = ucode_cpu_info + cpu;
|
||||
u16 equiv_id;
|
||||
|
||||
equiv_id = __find_equiv_id(cpu);
|
||||
|
||||
equiv_id = find_equiv_id(&equiv_table, uci->cpu_sig.sig);
|
||||
if (!equiv_id)
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue