selftests/powerpc: Move bind_to_cpu() to utils.h
authorBenjamin Gray <bgray@linux.ibm.com>
Thu, 6 Apr 2023 04:33:15 +0000 (14:33 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Apr 2023 03:21:45 +0000 (13:21 +1000)
commitc97b2fc6627e1c26a3a84633e135322918a1e592
treef856dff3d02187b4673530065eaa81392955fb95
parent15f0c2601e141e3c01c8dc3368b81181bc1c9228
selftests/powerpc: Move bind_to_cpu() to utils.h

This function will be useful in the DSCR test patches later in this
series, so promote it to be shared by all powerpc selftests.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230406043320.125138-3-bgray@linux.ibm.com
tools/testing/selftests/powerpc/include/utils.h
tools/testing/selftests/powerpc/pmu/lib.c
tools/testing/selftests/powerpc/pmu/lib.h
tools/testing/selftests/powerpc/utils.c