• Michael Neuling's avatar
    powerpc: Add reclaim and recheckpoint functions for context switching... · fb09692e
    Michael Neuling authored
    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: default avatarMatt Evans <matt@ozlabs.org>
    Signed-off-by: default avatarMichael Neuling <mikey@neuling.org>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    fb09692e
process.c 36 KB