[PATCH] selftests: powerpc: Fix online CPU selection

Kamalesh Babulal kamalesh at linux.vnet.ibm.com
Tue Jun 9 01:05:43 AEST 2020


On 6/8/20 8:12 PM, Sandipan Das wrote:
> The size of the cpu set must be large enough for systems
> with a very large number of CPUs. Otherwise, tests which
> try to determine the first online CPU by calling
> sched_getaffinity() will fail. This makes sure that the
> size of the allocated cpu set is dependent on the number
> of CPUs as reported by get_nprocs().
> 
> Fixes: 3752e453f6ba ("selftests/powerpc: Add tests of PMU EBBs")
> Reported-by: Shirisha Ganta <shiganta at in.ibm.com>
> Signed-off-by: Sandipan Das <sandipan at linux.ibm.com>

LGTM,

Reviewed-by: Kamalesh Babulal <kamalesh at linux.vnet.ibm.com>

-- 
Kamalesh


More information about the Linuxppc-dev mailing list