summaryrefslogtreecommitdiff
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorHarish <harish@linux.ibm.com>2020-06-09 13:44:23 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-29 22:30:34 +1000
commit854eb5022be04f81e318765f089f41a57c8e5d83 (patch)
treeabdfe6dce75cf9fb0818cf64bf2a030f290364d9 /arch/powerpc/include
parentcf1ae052e073c7ef6cf1a783a6427f7228253bd3 (diff)
selftests/powerpc: Fix CPU affinity for child process
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@in.ibm.com> Signed-off-by: Sandipan Das <sandipan@linux.ibm.com> Signed-off-by: Harish <harish@linux.ibm.com> Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Reviewed-by: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200609081423.529664-1-harish@linux.ibm.com
Diffstat (limited to 'arch/powerpc/include')
0 files changed, 0 insertions, 0 deletions