selftests/powerpc: Add test for system wide DSCR default
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Thu, 21 May 2015 06:43:06 +0000 (12:13 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 7 Jun 2015 09:35:38 +0000 (19:35 +1000)
commit4c6315f8f9387d638ccb1cc3a46a28a82a109928
tree1a3d07b2a1a39117c59365300cd99584d93c5be0
parent4eb2088c07cdc90d43a5a02d13c2f8aa20c470a9
selftests/powerpc: Add test for system wide DSCR default

This patch adds a test case for the system wide DSCR default value,
which when changed through it's sysfs interface must be visible to all
threads reading DSCR either through the privilege state SPR or the
problem state SPR. The DSCR value change should be immediate as well.

Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/Makefile
tools/testing/selftests/powerpc/dscr/Makefile [new file with mode: 0644]
tools/testing/selftests/powerpc/dscr/dscr.h [new file with mode: 0644]
tools/testing/selftests/powerpc/dscr/dscr_default_test.c [new file with mode: 0644]