diff options
author | Michael Neuling <mikey@neuling.org> | 2013-02-13 16:21:37 (GMT) |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-02-15 05:58:53 (GMT) |
commit | fb09692e71f13af7298eb603a1975850b1c7a8d8 (patch) | |
tree | 8a28455c583d2eff4b1c6afd55b46e23204d6749 /tools | |
parent | a2dcbb32f0647a3b8230c146a2f980654a7738af (diff) | |
download | linux-fsl-qoriq-fb09692e71f13af7298eb603a1975850b1c7a8d8.tar.xz |
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions