x86/microcode/AMD: Get rid of __find_equiv_id()
Subsystems (2)
Borislav Petkov
maintainerPATCH 1/1 x86/microcode/AMD: Get rid of __find_equiv_id()
From: "Borislav Petkov (AMD)" <[email protected]>
Merge it into its only call site.
No functional changes.
Signed-off-by Borislav Petkov (AMD) <[email protected]>
--- arch/x86/kernel/cpu/microcode/amd.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
arch/x86/kernel/cpu/microcode/amd.c +3 -6
@@ -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 ;
Signature · 1 line
2.35.1
The following commit has been merged into the x86/microcode branch of tip:
The following commit has been merged into the x86/microcode branch of tip:
Commit-ID: 9652df50cd444d0e6c26906ec9dfa894f2d4d6bc Gitweb: https://git.kernel.org/tip/9652df50cd444d0e6c26906ec9dfa894f2d4d6bc Author: Borislav Petkov (AMD) <[email protected]> AuthorDate: Mon, 27 Feb 2023 17:03:52 +01:00 Committer: Borislav Petkov (AMD) <[email protected]> CommitterDate: Sun, 12 Mar 2023 20:14:38 +01: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) <[email protected]>
--- arch/x86/kernel/cpu/microcode/amd.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
arch/x86/kernel/cpu/microcode/amd.c +3 -6
@@ -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 ;
The following commit has been merged into the x86/microcode branch of tip:
The following commit has been merged into the x86/microcode branch of tip:
Commit-ID: 37a19366e10b95380bf33e7a8b02509980399d7e Gitweb: https://git.kernel.org/tip/37a19366e10b95380bf33e7a8b02509980399d7e Author: Borislav Petkov (AMD) <[email protected]> AuthorDate: Mon, 27 Feb 2023 17:03:52 +01:00 Committer: Borislav Petkov (AMD) <[email protected]> CommitterDate: Mon, 08 May 2023 14:24:11 +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) <[email protected]>
--- arch/x86/kernel/cpu/microcode/amd.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
arch/x86/kernel/cpu/microcode/amd.c +3 -6
@@ -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 ;