]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc: Add reclaim and recheckpoint functions for context switching transactional...
authorMichael Neuling <mikey@neuling.org>
Wed, 13 Feb 2013 16:21:37 +0000 (16:21 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 15 Feb 2013 05:58:53 +0000 (16:58 +1100)
commitfb09692e71f13af7298eb603a1975850b1c7a8d8
tree8a28455c583d2eff4b1c6afd55b46e23204d6749
parenta2dcbb32f0647a3b8230c146a2f980654a7738af
powerpc: Add reclaim and recheckpoint functions for context switching transactional memory processes

When we switch out a task, we need to save both the checkpointed and the
speculated state into the thread struct.

Similarly when we are switching in a task we need to load both the checkpointed
and speculated state.  If the task was using FP, we non-lazily reload both the
original and the speculative FP register states.  This is because the kernel
doesn't see if/when a TM rollback occurs, so if we take an FP unavoidable
later, we are unable to determine which set of FP regs need to be restored.

This simply adds these functions.  It doesn't hook them into the existing code
yet.

Signed-off-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/process.c