• Magnus Damm's avatar
    sh: cpuidle for SuperH Mobile using hwblk · 7426394f
    Magnus Damm authored
    This patch adds cpuidle support for SuperH Mobile.
    
    The sleep mode selected by cpuidle is compared with
    the mode selected by the hwblk sleep code and the
    best allowed mode is entered.
    
    At this point "Sleep mode" and "Sleep mode + SF" are
    supported. This code can easily be extended to support
    "Software suspend mode", but the assembly code must
    first be updated to avoid loosing interrupts.
    
    Also, update the code to only copy the assembly snippet
    into internal memory once at bootup.
    Signed-off-by: default avatarMagnus Damm <damm@igel.co.jp>
    Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
    7426394f
suspend.h 819 Bytes