]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: refactor entry and rfi_flush tests
authorDaniel Axtens <dja@axtens.net>
Tue, 17 Nov 2020 05:59:15 +0000 (16:59 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Nov 2020 12:47:23 +0000 (23:47 +1100)
commit9b2d861512a7c9161e3defdbe538c8e02df39b27
tree394f601c1777fb63ba77e10e92ad1d4d155c5c4d
parent124524466d4cc0ccca6e975dbd643f30f4771747
selftests/powerpc: refactor entry and rfi_flush tests

For simplicity in backporting, the original entry_flush test contained
a lot of duplicated code from the rfi_flush test. De-duplicate that code.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/include/utils.h
tools/testing/selftests/powerpc/security/Makefile
tools/testing/selftests/powerpc/security/entry_flush.c
tools/testing/selftests/powerpc/security/flush_utils.c [new file with mode: 0644]
tools/testing/selftests/powerpc/security/flush_utils.h [new file with mode: 0644]
tools/testing/selftests/powerpc/security/rfi_flush.c