Author: mmacy
Date: Fri Jun  8 05:48:28 2018
New Revision: 334831
URL: https://svnweb.freebsd.org/changeset/base/334831

Log:
  hwpmc: fix arm64 INVARIANTS build

Modified:
  head/sys/dev/hwpmc/hwpmc_arm64.c

Modified: head/sys/dev/hwpmc/hwpmc_arm64.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_arm64.c    Fri Jun  8 05:40:36 2018        
(r334830)
+++ head/sys/dev/hwpmc/hwpmc_arm64.c    Fri Jun  8 05:48:28 2018        
(r334831)
@@ -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++) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to