[PATCH v3] selftests: powerpc: Fix CPU affinity for child process
Kamalesh Babulal
kamalesh at linux.vnet.ibm.com
Tue Jun 9 19:03:58 AEST 2020
On 6/9/20 1:44 PM, Harish wrote:
> On systems with large number of cpus, test fails trying to set
> affinity by calling sched_setaffinity() with smaller size for
> affinity mask. This patch fixes it by making sure that the size of
> allocated affinity mask is dependent on the number of CPUs as
> reported by get_nprocs().
>
> Fixes: 00b7ec5c9cf3 ("selftests/powerpc: Import Anton's context_switch2 benchmark")
> Reported-by: Shirisha Ganta <shiganta at in.ibm.com>
> Signed-off-by: Sandipan Das <sandipan at linux.ibm.com>
> Signed-off-by: Harish <harish at linux.ibm.com>
LGTM,
Reviewed-by: Kamalesh Babulal <kamalesh at linux.vnet.ibm.com>
--
Kamalesh
More information about the Linuxppc-dev
mailing list