summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/profile.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-07-14 21:40:53 +0000
committerjhb <jhb@FreeBSD.org>2001-07-14 21:40:53 +0000
commitd3045b33ca95f656e01e51523741bdedd13ce7e8 (patch)
tree7803ea6c3bd1b430a0ff25c6982c9ff13ff08d41 /sys/amd64/include/profile.h
parent59f5dd5135d5edc0d56edc7ed6ad44f0583a7298 (diff)
downloadFreeBSD-src-d3045b33ca95f656e01e51523741bdedd13ce7e8.zip
FreeBSD-src-d3045b33ca95f656e01e51523741bdedd13ce7e8.tar.gz
Fix MCOUNT_ENTER() so it actually compiles in the profiling case.
Pointy hat to: me Submitted by: Danny J. Zerkel <dzerkel@columbus.rr.com>
Diffstat (limited to 'sys/amd64/include/profile.h')
-rw-r--r--sys/amd64/include/profile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h
index 883daf5..5f511b3 100644
--- a/sys/amd64/include/profile.h
+++ b/sys/amd64/include/profile.h
@@ -65,7 +65,7 @@
#define MCOUNT_DECL(s) u_long s;
#ifdef SMP
#define MCOUNT_ENTER(s) { s = read_eflags(); disable_intr(); \
- while (!atomic_cmpset_acq_int(&mcount_lock, 0, 1) \
+ while (!atomic_cmpset_acq_int(&mcount_lock, 0, 1)) \
/* nothing */ ; }
#define MCOUNT_EXIT(s) { atomic_store_rel_int(&mcount_lock, 0); \
write_eflags(s); }
OpenPOWER on IntegriCloud