Commit 97d0906a authored by Borislav Petkov's avatar Borislav Petkov Committed by Greg Kroah-Hartman

x86, microcode, intel: Drop unused parameter

commit 47768626 upstream.

apply_microcode_early() doesn't use mc_saved_data, kill it.
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6a76bc2d
...@@ -650,8 +650,7 @@ static inline void print_ucode(struct ucode_cpu_info *uci) ...@@ -650,8 +650,7 @@ static inline void print_ucode(struct ucode_cpu_info *uci)
} }
#endif #endif
static int apply_microcode_early(struct mc_saved_data *mc_saved_data, static int apply_microcode_early(struct ucode_cpu_info *uci)
struct ucode_cpu_info *uci)
{ {
struct microcode_intel *mc_intel; struct microcode_intel *mc_intel;
unsigned int val[2]; unsigned int val[2];
...@@ -720,7 +719,7 @@ _load_ucode_intel_bsp(struct mc_saved_data *mc_saved_data, ...@@ -720,7 +719,7 @@ _load_ucode_intel_bsp(struct mc_saved_data *mc_saved_data,
mc_saved_in_initrd, uci); mc_saved_in_initrd, uci);
load_microcode(mc_saved_data, mc_saved_in_initrd, load_microcode(mc_saved_data, mc_saved_in_initrd,
initrd_start_early, uci); initrd_start_early, uci);
apply_microcode_early(mc_saved_data, uci); apply_microcode_early(uci);
} }
void __init void __init
...@@ -783,5 +782,5 @@ void load_ucode_intel_ap(void) ...@@ -783,5 +782,5 @@ void load_ucode_intel_ap(void)
collect_cpu_info_early(&uci); collect_cpu_info_early(&uci);
load_microcode(mc_saved_data_p, mc_saved_in_initrd_p, load_microcode(mc_saved_data_p, mc_saved_in_initrd_p,
initrd_start_addr, &uci); initrd_start_addr, &uci);
apply_microcode_early(mc_saved_data_p, &uci); apply_microcode_early(&uci);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment