• M
    powerpc: Add reclaim and recheckpoint functions for context switching... · fb09692e
    Michael Neuling 提交于
    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: NMatt Evans <matt@ozlabs.org>
    Signed-off-by: NMichael Neuling <mikey@neuling.org>
    Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
    fb09692e
process.c 36.0 KB