[PATCH v1.1] tests: Verify inheritance of cpu affinity

Siddhesh Poyarekar siddhesh@sourceware.org
Tue Jan 7 22:01:06 GMT 2025


On 2025-01-07 15:51, Adhemerval Zanella Netto wrote:
>> +  /* Less CPUS for the first level, if that's possible.  */
>> +  if (entry && cpus > 1)
>> +    cpus--;
> 
> I think this will always fail on CPUs with one core (there are still
> some for non-usual architectures).
> 

For single CPU systems this should end up having the same mask for the 
first and second level tests, which shouldn't actually cause a failure. 
I admittedly haven't tested this though; I'll try and get a box to confirm.

Thanks,
Sid


More information about the Libc-alpha mailing list