aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/vio.c
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2013-09-26 13:29:09 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-13 16:08:31 -0700
commit72daf965bb8fe1447069db3ea511047f20eca947 (patch)
tree11ab786f3eafb9a6fc9b5c79f0d086f62eb10b91 /arch/powerpc/kernel/vio.c
parent09bee3bc290da5f7f39b62f65f1a3deeaa3834ac (diff)
powerpc/tm: Switch out userspace PPR and DSCR sooner
commit e9bdc3d6143d1c4b8d8ce5231fc958268331f983 upstream. When we do a treclaim or trecheckpoint we end up running with userspace PPR and DSCR values. Currently we don't do anything special to avoid running with user values which could cause a severe performance degradation. This patch moves the PPR and DSCR save and restore around treclaim and trecheckpoint so that we run with user values for a much shorter period. More care is taken with the PPR as it's impact is greater than the DSCR. This is similar to user exceptions, where we run HTM_MEDIUM early to ensure that we don't run with a userspace PPR values in the kernel. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc/kernel/vio.c')
0 files changed, 0 insertions, 0 deletions