aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_bif_info.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-04-10 17:01:41 +0200
committerBjörn-Egil Dahlberg <[email protected]>2012-04-10 17:12:18 +0200
commit769333459717d16dc6896b86b444205701e821e4 (patch)
tree2116deba1105d1325f341fd46720f80fb45237d4 /erts/emulator/beam/erl_bif_info.c
parentdaf8f46c46745ebb6fcdfb226252c7823264a410 (diff)
downloadotp-769333459717d16dc6896b86b444205701e821e4.tar.gz
otp-769333459717d16dc6896b86b444205701e821e4.tar.bz2
otp-769333459717d16dc6896b86b444205701e821e4.zip
lcnt: Enhancement fixups
Diffstat (limited to 'erts/emulator/beam/erl_bif_info.c')
-rw-r--r--erts/emulator/beam/erl_bif_info.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c
index 02a463002c..060a52d220 100644
--- a/erts/emulator/beam/erl_bif_info.c
+++ b/erts/emulator/beam/erl_bif_info.c
@@ -4051,11 +4051,6 @@ static Eterm lcnt_build_result_term(Eterm **hpp, Uint *szp, erts_lcnt_data_t *da
}
#endif
-#ifdef ERTS_ENABLE_LOCK_COUNT
-void enable_io_lock_count(int enable);
-void enable_proc_lock_count(int enable);
-#endif
-
BIF_RETTYPE erts_debug_lock_counters_1(BIF_ALIST_1)
{
#ifdef ERTS_ENABLE_LOCK_COUNT
@@ -4147,13 +4142,15 @@ BIF_RETTYPE erts_debug_lock_counters_1(BIF_ALIST_1)
} else {
res = erts_lcnt_clear_rt_opt(opt) ? am_true : am_false;
}
+#ifdef ERTS_SMP
if (res != tp[2]) {
if (opt == ERTS_LCNT_OPT_PORTLOCK) {
- enable_io_lock_count(val);
+ erts_lcnt_enable_io_lock_count(val);
} else if (opt == ERTS_LCNT_OPT_PROCLOCK) {
- enable_proc_lock_count(val);
+ erts_lcnt_enable_proc_lock_count(val);
}
}
+#endif
erts_smp_thr_progress_unblock();
erts_smp_proc_lock(BIF_P, ERTS_PROC_LOCK_MAIN);
BIF_RET(res);