Correct an oversight: call the MD finalize hook at module unload

time.
This commit is contained in:
Joseph Koshy 2008-11-15 11:11:32 +00:00
parent edfea6b4ad
commit bc4f0ade98
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184994

View File

@ -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);