aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2015-07-15 11:34:35 +0200
committerLukas Larsson <[email protected]>2016-02-02 10:45:21 +0100
commit49458ee51bbbdcb06d776a846ce61a4eb274df04 (patch)
tree3e099f8b07dd3a52cfaf210274f1206f86f38a28
parentc62f0216c37340e8716938b9408a40cd5b4e1d62 (diff)
downloadotp-49458ee51bbbdcb06d776a846ce61a4eb274df04.tar.gz
otp-49458ee51bbbdcb06d776a846ce61a4eb274df04.tar.bz2
otp-49458ee51bbbdcb06d776a846ce61a4eb274df04.zip
erts: use correct function for perf counter on non-x86
-rw-r--r--erts/emulator/sys/unix/erl_unix_sys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/sys/unix/erl_unix_sys.h b/erts/emulator/sys/unix/erl_unix_sys.h
index 9f137048de..3a03d6be49 100644
--- a/erts/emulator/sys/unix/erl_unix_sys.h
+++ b/erts/emulator/sys/unix/erl_unix_sys.h
@@ -289,7 +289,7 @@ erts_os_times(ErtsMonotonicTime *mtimep, ErtsSystemTime *stimep)
} while(0)
#define SYS_PERF_COUNTER_UNIT erts_perf_counter_unit()
#else
-#define sys_perf_counter(ts) *(ts) = erts_get_perf_counter()
+#define sys_perf_counter(ts) *(ts) = erts_sys_hrtime()
#define SYS_PERF_COUNTER_UNIT 1000000000LL
#endif