mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix MCOUNT_ENTER() so it actually compiles in the profiling case.
Pointy hat to: me Submitted by: Danny J. Zerkel <dzerkel@columbus.rr.com>
This commit is contained in:
parent
8f01c08a34
commit
ce11a18f0e
2 changed files with 2 additions and 2 deletions
|
|
@ -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); }
|
||||
|
|
|
|||
|
|
@ -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); }
|
||||
|
|
|
|||
Loading…
Reference in a new issue