[PATCH 3/3] selftests/powerpc: Add in check for TM
Rashmica Gupta
rashmicy at gmail.com
Tue Dec 1 16:08:24 AEDT 2015
The resched-dscr test does not currently check for TM, so add in check.
Signed-off-by: Rashmica Gupta <rashmicy at gmail.com>
---
tools/testing/selftests/powerpc/tm/tm-resched-dscr.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/selftests/powerpc/tm/tm-resched-dscr.c b/tools/testing/selftests/powerpc/tm/tm-resched-dscr.c
index 88c46481e59b..8243558aac6c 100644
--- a/tools/testing/selftests/powerpc/tm/tm-resched-dscr.c
+++ b/tools/testing/selftests/powerpc/tm/tm-resched-dscr.c
@@ -38,6 +38,8 @@ int test_body(void)
{
uint64_t rv, dscr1 = 1, dscr2, texasr;
+ SKIP_IF(!have_htm());
+
printf("Check DSCR TM context switch: ");
fflush(stdout);
for (;;) {
--
2.5.0
More information about the Linuxppc-dev
mailing list