aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include/profile.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-07-14 21:40:53 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-07-14 21:40:53 +0000
commitce11a18f0ed0580d3b44067961c8db0718a2e708 (patch)
tree7803ea6c3bd1b430a0ff25c6982c9ff13ff08d41 /sys/i386/include/profile.h
parent8f01c08a348e44da24f0b717161768c99ef2bb82 (diff)
downloadsrc-ce11a18f0ed0580d3b44067961c8db0718a2e708.tar.gz
src-ce11a18f0ed0580d3b44067961c8db0718a2e708.zip
Fix MCOUNT_ENTER() so it actually compiles in the profiling case.
Pointy hat to: me Submitted by: Danny J. Zerkel <dzerkel@columbus.rr.com>
Notes
Notes: svn path=/head/; revision=79734
Diffstat (limited to 'sys/i386/include/profile.h')
-rw-r--r--sys/i386/include/profile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/include/profile.h b/sys/i386/include/profile.h
index 883daf5ee1db..5f511b3b6a16 100644
--- a/sys/i386/include/profile.h
+++ b/sys/i386/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); }