From 70794059bfae7a538ee6b1ffe6f1604950ef83f2 Mon Sep 17 00:00:00 2001 From: Remy Noel Date: Thu, 3 May 2018 12:53:46 +0200 Subject: lapic: resets perfmon interrupt after each call. --- arch/x86/machine/lapic.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/x86') 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(); -- cgit v1.2.3