fix: Unify possible CPU number fallback
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 27 Jul 2022 20:19:35 +0000 (16:19 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 29 Jul 2022 14:30:47 +0000 (10:30 -0400)
commit08a0398c1ebd4778f1f8bbd8df54919f5126122f
treeda5024c7e7db015b28cbcb98107005b6511f3413
parent73beabae8c91b5b8374db56382aabe912adb026a
fix: Unify possible CPU number fallback

The MUSL specific fallback to get the number of possible CPUs in the
system has the same issue with hot-unplugged CPUs as the Glibc
implementation we worked around by using the possible CPU mask from
sysfs.

To address this, unify our fallback code across all C libraries to get
the maximum CPU id from the directories in "/sys/devices/system/cpu".

Change-Id: I5541742dc1de8e011a942880825fa88c656f0905
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/common/smp.c
This page took 0.024518 seconds and 4 git commands to generate.