selftests/powerpc: Move Hash MMU check to utilities
authorSandipan Das <sandipan@linux.ibm.com>
Thu, 4 Jun 2020 12:56:09 +0000 (18:26 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 Jun 2020 04:37:51 +0000 (14:37 +1000)
commitc405b738daf9d8e8a5aedfeb6be851681e65e54b
tree7b11e0c1a8b834a93bc1ca900d881f3852f79a78
parent828ca4320d130bbe1d12866152600c49ff6a9f79
selftests/powerpc: Move Hash MMU check to utilities

This moves a function to test if the MMU is in Hash mode
under the generic test utilities.

Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200604125610.649668-3-sandipan@linux.ibm.com
tools/testing/selftests/powerpc/include/utils.h
tools/testing/selftests/powerpc/mm/Makefile
tools/testing/selftests/powerpc/mm/bad_accesses.c
tools/testing/selftests/powerpc/utils.c