[PATCH v2 1/3] misc: Add __get_nprocs_sched

Florian Weimer fweimer@redhat.com
Mon Sep 13 11:05:07 GMT 2021


* Adhemerval Zanella:

> 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.

Looks okay to me.

Reviewed-by: Florian Weimer <fweimer@redhat.com>

Thanks,
Florian



More information about the Libc-alpha mailing list