From: Michael Jeanson Date: Wed, 27 Jul 2022 20:19:35 +0000 (-0400) Subject: fix: Unify possible CPU number fallback X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=217babc9b6b5dcc531fb6b8bc5fc6e2906a060be;hp=217babc9b6b5dcc531fb6b8bc5fc6e2906a060be;p=lttng-ust.git 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 Signed-off-by: Mathieu Desnoyers ---