aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-06-08 05:48:28 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-06-08 05:48:28 +0000
commit7f5336f6663af71e7e260ed1dc3448475847e9bc (patch)
treea04c333e5d675e8c2f3c7a1c799e83a44aadc3a6 /sys/dev
parentb8af2820f6412e9775fba93f1224c54345a9346f (diff)
downloadsrc-7f5336f6663af71e7e260ed1dc3448475847e9bc.tar.gz
src-7f5336f6663af71e7e260ed1dc3448475847e9bc.zip
hwpmc: fix arm64 INVARIANTS build
Notes
Notes: svn path=/head/; revision=334831
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/hwpmc/hwpmc_arm64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hwpmc/hwpmc_arm64.c b/sys/dev/hwpmc/hwpmc_arm64.c
index 6fa319f99e82..af028d3fce94 100644
--- a/sys/dev/hwpmc/hwpmc_arm64.c
+++ b/sys/dev/hwpmc/hwpmc_arm64.c
@@ -331,11 +331,11 @@ arm64_intr(struct trapframe *tf)
int error;
int reg, cpu;
+ cpu = curcpu;
KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
("[arm64,%d] CPU %d out of range", __LINE__, cpu));
retval = 0;
- cpu = curcpu;
pc = arm64_pcpu[cpu];
for (ri = 0; ri < arm64_npmcs; ri++) {