Page MenuHomeFreeBSD

D47989.id147978.diff
No OneTemporary

D47989.id147978.diff

diff --git a/sys/dev/hwpmc/hwpmc_x86.c b/sys/dev/hwpmc/hwpmc_x86.c
--- a/sys/dev/hwpmc/hwpmc_x86.c
+++ b/sys/dev/hwpmc/hwpmc_x86.c
@@ -248,6 +248,7 @@
continue;
md->pmd_classdep[i].pcd_caps &= ~PMC_CAP_INTERRUPT;
}
+ nmi_register_handler(md->pmd_intr);
return (md);
}
@@ -257,6 +258,7 @@
{
lapic_disable_pcint();
+ nmi_remove_handler(md->pmd_intr);
if (cpu_vendor_id == CPU_VENDOR_AMD ||
cpu_vendor_id == CPU_VENDOR_HYGON)
pmc_amd_finalize(md);

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 16, 1:40 PM (13 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29757933
Default Alt Text
D47989.id147978.diff (479 B)

Event Timeline