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/io.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/io.c')
-rw-r--r-- | erts/emulator/beam/io.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c index e8f04ef68a..53a25f5136 100644 --- a/erts/emulator/beam/io.c +++ b/erts/emulator/beam/io.c @@ -1396,12 +1396,8 @@ void init_io(void) erts_smp_mtx_unlock(&erts_driver_list_lock); } -#ifdef ERTS_ENABLE_LOCK_COUNT -void enable_io_lock_count (int enable); - -void -enable_io_lock_count (int enable) -{ +#if defined(ERTS_ENABLE_LOCK_COUNT) && defined(ERTS_SMP) +void erts_lcnt_enable_io_lock_count(int enable) { int i; for (i = 0; i < erts_max_ports; i++) { |