Skip to content

Commit

Permalink
x86/microcode/AMD: Get rid of __find_equiv_id()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Borislav Petkov (AMD) committed May 8, 2023
1 parent ac9a786 commit 37a1936
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions arch/x86/kernel/cpu/microcode/amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 37a1936

Please sign in to comment.