aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2015-12-09 20:11:47 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2015-12-10 21:11:13 +1100
commitdb1231dcdb4dc6cdcbdef0babe641a9162c0dc98 (patch)
tree34250a59e15b1d3e9620a7a9e3083b0a4fa82bce /tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c
parentpowerpc: Call restore_sprs() before _switch() (diff)
downloadlinux-dev-db1231dcdb4dc6cdcbdef0babe641a9162c0dc98.tar.xz
linux-dev-db1231dcdb4dc6cdcbdef0babe641a9162c0dc98.zip
powerpc: Fix DSCR inheritance over fork()
Two DSCR tests have a hack in them: /* * XXX: Force a context switch out so that DSCR * current value is copied into the thread struct * which is required for the child to inherit the * changed value. */ sleep(1); We should not be working around this in the testcase, it is a kernel bug. Fix it by copying the current DSCR to the child, instead of what we had in the thread struct at last context switch. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c')
-rw-r--r--tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c b/tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c
index 8265504de571..08a8b95e3bc1 100644
--- a/tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c
+++ b/tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c
@@ -60,14 +60,6 @@ int dscr_inherit_exec(void)
else
set_dscr(dscr);
- /*
- * XXX: Force a context switch out so that DSCR
- * current value is copied into the thread struct
- * which is required for the child to inherit the
- * changed value.
- */
- sleep(1);
-
pid = fork();
if (pid == -1) {
perror("fork() failed");