mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 17:54:13 +08:00
selftests/powerpc: Skip tm-resched-dscr if we don't have TM
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
34dc8b279d
commit
b319ee8445
@ -2,9 +2,9 @@ TEST_PROGS := tm-resched-dscr tm-syscall
|
||||
|
||||
all: $(TEST_PROGS)
|
||||
|
||||
$(TEST_PROGS): ../harness.c
|
||||
$(TEST_PROGS): ../harness.c ../utils.c
|
||||
|
||||
tm-syscall: tm-syscall-asm.S ../utils.c
|
||||
tm-syscall: tm-syscall-asm.S
|
||||
tm-syscall: CFLAGS += -mhtm -I../../../../../usr/include
|
||||
|
||||
include ../../lib.mk
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include <asm/tm.h>
|
||||
|
||||
#include "utils.h"
|
||||
#include "tm.h"
|
||||
|
||||
#define TBEGIN ".long 0x7C00051D ;"
|
||||
#define TEND ".long 0x7C00055D ;"
|
||||
@ -42,6 +43,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 (;;) {
|
||||
|
Loading…
Reference in New Issue
Block a user