Michael Neuling e9bdc3d614 powerpc/tm: Switch out userspace PPR and DSCR sooner
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>
Cc: <stable@vger.kernel.org> # 3.9+
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-10-03 17:25:51 +10:00
..
2013-04-23 16:05:05 +10:00
2012-03-28 18:30:02 +01:00
2013-08-14 11:50:19 +10:00
2011-11-28 21:13:18 +02:00
2013-09-25 14:15:51 +10:00
2013-09-25 14:15:51 +10:00
2013-09-25 14:15:51 +10:00
2013-09-10 13:53:52 -07:00
2013-08-14 15:33:22 +10:00
2013-08-14 14:57:18 +10:00
2012-03-28 18:30:02 +01:00