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 <shiga...@in.ibm.com> > Signed-off-by: Sandipan Das <sandi...@linux.ibm.com> > Signed-off-by: Harish <har...@linux.ibm.com>
LGTM, Reviewed-by: Kamalesh Babulal <kamal...@linux.vnet.ibm.com> -- Kamalesh