diff options
author | Björn-Egil Dahlberg <[email protected]> | 2012-04-10 17:01:41 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2012-04-10 17:12:18 +0200 |
commit | 769333459717d16dc6896b86b444205701e821e4 (patch) | |
tree | 2116deba1105d1325f341fd46720f80fb45237d4 /erts/emulator/beam/erl_bif_info.c | |
parent | daf8f46c46745ebb6fcdfb226252c7823264a410 (diff) | |
download | otp-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.c | 11 |
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); |