Commit 849e0a63 authored by Aichun Shi's avatar Aichun Shi
Browse files

Revert "x86/microcode: Print previous version of microcode after reload"

Intel inclusion
category: feature
feature: Backport Intel In Field Scan(IFS) multi-blob images support
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I6L337


CVE: N/A
Reference: N/A

Intel-SIG: Revert commit c851af28 ("x86/microcode: Print previous
version of microcode after reload")

-------------------------------------

This reverts commit c851af28.

This revert is to recover old microcode interface /dev/cpu/microcode.

Signed-off-by: default avatarAichun Shi <aichun.shi@intel.com>
parent 2c34f19f
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -508,7 +508,7 @@ static int __reload_late(void *info)
 */
static int microcode_reload_late(void)
{
	int old = boot_cpu_data.microcode, ret;
	int ret;

	pr_err("Attempting late microcode loading - it is dangerous and taints the kernel.\n");
	pr_err("You should switch to early loading, if possible.\n");
@@ -520,8 +520,7 @@ static int microcode_reload_late(void)
	if (ret == 0)
		microcode_check();

	pr_info("Reload completed, microcode revision: 0x%x -> 0x%x\n",
		old, boot_cpu_data.microcode);
	pr_info("Reload completed, microcode revision: 0x%x\n", boot_cpu_data.microcode);

	return ret;
}