x86, microcode, AMD: Add a vendor-specific exit function
This will be used to do cleanup work before the driver exits. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
This commit is contained in:
parent
dc47ce90c3
commit
f72c1a5765
3 changed files with 11 additions and 0 deletions
|
@ -563,6 +563,8 @@ module_init(microcode_init);
|
|||
|
||||
static void __exit microcode_exit(void)
|
||||
{
|
||||
struct cpuinfo_x86 *c = &cpu_data(0);
|
||||
|
||||
microcode_dev_exit();
|
||||
|
||||
unregister_hotcpu_notifier(&mc_cpu_notifier);
|
||||
|
@ -580,6 +582,9 @@ static void __exit microcode_exit(void)
|
|||
|
||||
microcode_ops = NULL;
|
||||
|
||||
if (c->x86_vendor == X86_VENDOR_AMD)
|
||||
exit_amd_microcode();
|
||||
|
||||
pr_info("Microcode Update Driver: v" MICROCODE_VERSION " removed.\n");
|
||||
}
|
||||
module_exit(microcode_exit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue