nspr PR_GetNumberOfProcessors() -> HW_NCPUONLINE

2022-04-24 Thread Stuart Henderson
prsystem.c +--- nspr/pr/src/misc/prsystem.c.orig nspr/pr/src/misc/prsystem.c +@@ -206,7 +206,11 @@ PR_IMPLEMENT(PRInt32) PR_GetNumberOfProcessors( void ) + size_t len = sizeof(numCpus); + + mib[0] = CTL_HW; ++#ifdef HW_NCPUONLINE ++ mib[1] = HW_NCPUONLINE; ++#else + mib[1]

Re: HW_NCPUONLINE

2018-09-18 Thread Stuart Henderson
On 2018/09/17 19:47, Scott Cheloha wrote: > Hi, > > The new sysctl(2) for determining how many CPUs the scheduler has > access to at a particular moment is HW_NCPUONLINE. > > A lot of software in ports uses HW_NCPU for this purpose, so this > software may need to be