diff options
| author | Matt Macy <mmacy@FreeBSD.org> | 2018-06-08 05:01:09 +0000 |
|---|---|---|
| committer | Matt Macy <mmacy@FreeBSD.org> | 2018-06-08 05:01:09 +0000 |
| commit | 978910109d62cd781ab6f8a1955bdbb0d6011461 (patch) | |
| tree | a52e7fc908797d3c1ae8b5833867490acc47f162 /sys/dev/hwpmc | |
| parent | eb7c901995d407fa177d99270a2684f844db3921 (diff) | |
Notes
Diffstat (limited to 'sys/dev/hwpmc')
| -rw-r--r-- | sys/dev/hwpmc/hwpmc_core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/hwpmc/hwpmc_core.c b/sys/dev/hwpmc/hwpmc_core.c index ecdd73b786d8b..8a25c3dd685ed 100644 --- a/sys/dev/hwpmc/hwpmc_core.c +++ b/sys/dev/hwpmc/hwpmc_core.c @@ -1118,12 +1118,13 @@ core_intr(struct trapframe *tf) static int core2_intr(struct trapframe *tf) { - int error, found_interrupt, n; + int error, found_interrupt, n, cpu; uint64_t flag, intrstatus, intrenable, msr; struct pmc *pm; struct core_cpu *cc; pmc_value_t v; + cpu = curcpu; PMCDBG3(MDP,INT, 1, "cpu=%d tf=0x%p um=%d", cpu, (void *) tf, TRAPF_USERMODE(tf)); @@ -1140,7 +1141,7 @@ core2_intr(struct trapframe *tf) (uintmax_t) intrstatus); found_interrupt = 0; - cc = core_pcpu[curcpu]; + cc = core_pcpu[cpu]; KASSERT(cc != NULL, ("[core,%d] null pcpu", __LINE__)); |
