linux_dsm_epyc7002/tools/testing/selftests/powerpc/dscr
Anton Blanchard db1231dcdb 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>
2015-12-10 21:11:13 +11:00
..
.gitignore selftests/powerpc: Add gitignore file for the new DSCR tests 2015-06-07 19:38:20 +10:00
dscr_default_test.c
dscr_explicit_test.c selftests/powerpc: Add test for explicitly changing DSCR value 2015-06-07 19:36:08 +10:00
dscr_inherit_exec_test.c powerpc: Fix DSCR inheritance over fork() 2015-12-10 21:11:13 +11:00
dscr_inherit_test.c powerpc: Fix DSCR inheritance over fork() 2015-12-10 21:11:13 +11:00
dscr_sysfs_test.c selftests/powerpc: Add test for all DSCR sysfs interfaces 2015-06-07 19:37:58 +10:00
dscr_sysfs_thread_test.c selftests/powerpc: Add thread based stress test for DSCR sysfs interfaces 2015-06-07 19:38:18 +10:00
dscr_user_test.c selftests/powerpc: Add test for DSCR SPR numbers 2015-06-07 19:36:51 +10:00
dscr.h
Makefile selftests/powerpc: Add thread based stress test for DSCR sysfs interfaces 2015-06-07 19:38:18 +10:00