aboutsummaryrefslogtreecommitdiffstats
path: root/erts/lib_src
diff options
context:
space:
mode:
authorBruce Yinhe <[email protected]>2014-10-28 09:35:04 +0100
committerBruce Yinhe <[email protected]>2014-10-28 09:35:04 +0100
commit3f5685c7354dc481294013cf86d2f9621300c139 (patch)
tree734f08db013df554ffdb85bbe41ad0cb1a560568 /erts/lib_src
parent51250a4c8a3d0b9998820221b8f2f93ae275649e (diff)
parentc8ae3f2797d9c613e07b916683c51efea2da81aa (diff)
downloadotp-3f5685c7354dc481294013cf86d2f9621300c139.tar.gz
otp-3f5685c7354dc481294013cf86d2f9621300c139.tar.bz2
otp-3f5685c7354dc481294013cf86d2f9621300c139.zip
Merge branch 'pguyot/fix-freebsd-cpu-topology' into maint
OTP-12267 * pguyot/fix-freebsd-cpu-topology: Fix bug in FreeBSD topology detection code
Diffstat (limited to 'erts/lib_src')
-rw-r--r--erts/lib_src/common/erl_misc_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/lib_src/common/erl_misc_utils.c b/erts/lib_src/common/erl_misc_utils.c
index d58a28b5cb..7833dd8219 100644
--- a/erts/lib_src/common/erl_misc_utils.c
+++ b/erts/lib_src/common/erl_misc_utils.c
@@ -1515,7 +1515,7 @@ const char* parse_topology_spec_group(erts_cpu_info_t *cpuinfo, const char* xml,
if (is_thread_group) {
thread++;
} else {
- *core_p = (*core_p)++;
+ *core_p = (*core_p) + 1;
}
index_procs++;
}
@@ -1535,9 +1535,9 @@ const char* parse_topology_spec_group(erts_cpu_info_t *cpuinfo, const char* xml,
if (parentCacheLevel == 0) {
*core_p = 0;
- *processor_p = (*processor_p)++;
+ *processor_p = (*processor_p) + 1;
} else {
- *core_p = (*core_p)++;
+ *core_p = (*core_p) + 1;
}
if (error)