Correct an oversight: call the MD finalize hook at module unload
time.
This commit is contained in:
parent
edfea6b4ad
commit
bc4f0ade98
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184994
@ -4656,6 +4656,9 @@ pmc_cleanup(void)
|
||||
if (md->pmd_pcpu_fini)
|
||||
md->pmd_pcpu_fini(cpu);
|
||||
}
|
||||
|
||||
pmc_md_finalize(md);
|
||||
|
||||
free(md, M_PMC);
|
||||
md = NULL;
|
||||
pmc_restore_cpu_binding(&pb);
|
||||
|
Loading…
Reference in New Issue
Block a user