From bc4f0ade982163bbcb9d5be32c5e174957086462 Mon Sep 17 00:00:00 2001 From: Joseph Koshy Date: Sat, 15 Nov 2008 11:11:32 +0000 Subject: [PATCH] Correct an oversight: call the MD finalize hook at module unload time. --- sys/dev/hwpmc/hwpmc_mod.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c index 32db1b872440..9f30c1f6d24f 100644 --- a/sys/dev/hwpmc/hwpmc_mod.c +++ b/sys/dev/hwpmc/hwpmc_mod.c @@ -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);