x86: ucode-amd: Load ucode-patches once and not separately of each CPU
This also implies that corresponding log messages, e.g. platform microcode: firmware: requesting amd-ucode/microcode_amd.bin show up only once on module load and not when ucode is updated for each CPU. Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com> Cc: dimm <dmitry.adamushko@gmail.com> LKML-Reference: <20091110110723.GH30802@alberich.amd.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
6e18da75c2
commit
d1c84f79a6
@@ -520,6 +520,9 @@ static int __init microcode_init(void)
|
||||
return PTR_ERR(microcode_pdev);
|
||||
}
|
||||
|
||||
if (microcode_ops->init)
|
||||
microcode_ops->init(µcode_pdev->dev);
|
||||
|
||||
get_online_cpus();
|
||||
mutex_lock(µcode_mutex);
|
||||
|
||||
@@ -563,6 +566,9 @@ static void __exit microcode_exit(void)
|
||||
|
||||
platform_device_unregister(microcode_pdev);
|
||||
|
||||
if (microcode_ops->fini)
|
||||
microcode_ops->fini();
|
||||
|
||||
microcode_ops = NULL;
|
||||
|
||||
pr_info("Microcode Update Driver: v" MICROCODE_VERSION " removed.\n");
|
||||
|
Reference in New Issue
Block a user