mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-07-19 12:50:21 +02:00
x86/microcode: Drop struct ucode_cpu_info.valid
It is not needed anymore. Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Ashok Raj <ashok.raj@intel.com> Link: https://lore.kernel.org/r/20221028142638.28498-6-bp@alien8.de
This commit is contained in:
parent
2e6ff4052d
commit
254ed7cf4d
|
@ -49,7 +49,6 @@ struct microcode_ops {
|
|||
|
||||
struct ucode_cpu_info {
|
||||
struct cpu_signature cpu_sig;
|
||||
int valid;
|
||||
void *mc;
|
||||
};
|
||||
extern struct ucode_cpu_info ucode_cpu_info[];
|
||||
|
|
|
@ -210,7 +210,6 @@ int intel_cpu_collect_info(struct ucode_cpu_info *uci)
|
|||
csig.rev = intel_get_microcode_revision();
|
||||
|
||||
uci->cpu_sig = csig;
|
||||
uci->valid = 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -554,9 +554,9 @@ void microcode_bsp_resume(void)
|
|||
int cpu = smp_processor_id();
|
||||
struct ucode_cpu_info *uci = ucode_cpu_info + cpu;
|
||||
|
||||
if (uci->valid && uci->mc)
|
||||
if (uci->mc)
|
||||
microcode_ops->apply_microcode(cpu);
|
||||
else if (!uci->mc)
|
||||
else
|
||||
reload_early_microcode();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user