summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorRemy Noel <mocramis@gmail.com>2018-05-03 12:53:46 +0200
committerRemy Noel <mocramis@gmail.com>2018-05-03 13:08:30 +0200
commit70794059bfae7a538ee6b1ffe6f1604950ef83f2 (patch)
tree8274f92a0bec016ed671f65a642c2d93e3691879 /arch/x86
parent8bf7a4afd769a2cb1d6edfdc89b954f79e697f18 (diff)
lapic: resets perfmon interrupt after each call.
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/machine/lapic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/machine/lapic.c b/arch/x86/machine/lapic.c
index 6ba3ddd..d74e676 100644
--- a/arch/x86/machine/lapic.c
+++ b/arch/x86/machine/lapic.c
@@ -342,6 +342,9 @@ lapic_pmc_of_intr(struct trap_frame *frame)
#ifdef CONFIG_PERFMON
perfmon_of_intr();
+
+ /* Resets the interupt as it is auto cleared when it fires */
+ lapic_write(&lapic_map->lvt_pmc, TRAP_LAPIC_PMC_OF);
#endif
lapic_eoi();