]> git.ipfire.org Git - thirdparty/glibc.git/commit
misc: Add __get_nprocs_sched
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 6 Sep 2021 15:22:54 +0000 (12:22 -0300)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 1 Oct 2021 16:19:09 +0000 (18:19 +0200)
commite870aac8974cda746157a5a3c9f452ccd70da29b
treef7545df9c54b9c05c31dd3c2c09ee5ab614f57af
parent40bade26d5bcbda3d21fb598c5063d9df62de966
misc: Add __get_nprocs_sched

This is an internal function meant to return the number of avaliable
processor where the process can scheduled, different than the
__get_nprocs which returns a the system available online CPU.

The Linux implementation currently only calls __get_nprocs(), which
in tuns calls sched_getaffinity.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
(cherry picked from commit 11a02b035b464ab6813676adfd19c4a59c36d907)
include/sys/sysinfo.h
malloc/arena.c
misc/getsysstats.c
sysdeps/mach/getsysstats.c
sysdeps/unix/sysv/linux/getsysstats.c