Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b319ee84
Commit
b319ee84
authored
Dec 02, 2015
by
Michael Ellerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
selftests/powerpc: Skip tm-resched-dscr if we don't have TM
Signed-off-by:
Michael Ellerman
<
mpe@ellerman.id.au
>
parent
34dc8b27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
tools/testing/selftests/powerpc/tm/Makefile
tools/testing/selftests/powerpc/tm/Makefile
+2
-2
tools/testing/selftests/powerpc/tm/tm-resched-dscr.c
tools/testing/selftests/powerpc/tm/tm-resched-dscr.c
+3
-0
No files found.
tools/testing/selftests/powerpc/tm/Makefile
View file @
b319ee84
...
...
@@ -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
...
...
tools/testing/selftests/powerpc/tm/tm-resched-dscr.c
View file @
b319ee84
...
...
@@ -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
(;;)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment