fix: Unify possible CPU number fallback stable-2.10
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 29 Jul 2022 14:43:15 +0000 (10:43 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 29 Jul 2022 18:32:19 +0000 (14:32 -0400)
commit94b4db5af9ccd2f7abefd47152bdb0bb1f9bcc83
tree2df30869852e53b78f4532c2dc9da556fd7aa47e
parenta9e89020a471ce6c27c65d01a24ae3e5cb820534
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>
libringbuffer/smp.c
This page took 0.024143 seconds and 4 git commands to generate.