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-10 20:44:39 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2015-12-10 21:10:55 +1100
commit20dbe67062062c2a790832f0d30e73dba45df7c4 (patch)
tree6b51f1222d8872a29700e445ee003fd322da9891 /tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c
parentpowerpc: Call check_if_tm_restore_required() in enable_kernel_*() (diff)
downloadlinux-dev-20dbe67062062c2a790832f0d30e73dba45df7c4.tar.xz
linux-dev-20dbe67062062c2a790832f0d30e73dba45df7c4.zip
powerpc: Call restore_sprs() before _switch()
commit 152d523e6307 ("powerpc: Create context switch helpers save_sprs() and restore_sprs()") moved the restore of SPRs after the call to _switch(). There is an issue with this approach - new tasks do not return through _switch(), they are set up by copy_thread() to directly return through ret_from_fork() or ret_from_kernel_thread(). This means restore_sprs() is not getting called for new tasks. Fix this by moving restore_sprs() before _switch(). Fixes: 152d523e6307 ("powerpc: Create context switch helpers save_sprs() and restore_sprs()") 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')
0 files changed, 0 insertions, 0 deletions