1. 30 10月, 2009 3 次提交
  2. 04 7月, 2009 1 次提交
    • M
      sh: cpuidle for SuperH Mobile using hwblk · 7426394f
      Magnus Damm 提交于
      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: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      7426394f
  3. 16 3月, 2009 1 次提交
    • M
      sh: SuperH Mobile suspend support · 77594912
      Magnus Damm 提交于
      This patch contains CONFIG_SUSPEND support to the SuperH
      architecture. If enabled, SuperH Mobile processors will
      register their suspend callbacks during boot.
      
      To suspend, use "echo mem > /sys/power/state". To allow
      wakeup, make sure "/sys/device/platform/../power/wakeup"
      contains "enabled". Additional per-device driver patches
      are most likely needed.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      77594912
  4. 10 3月, 2009 1 次提交
    • M
      sh: hibernation support · 2ef7f0da
      Magnus Damm 提交于
      Add Suspend-to-disk / swsusp / CONFIG_HIBERNATION support
      to the SuperH architecture.
      
      To suspend, use "swapon /dev/sda2; echo disk > /sys/power/state"
      To resume, pass "resume=/dev/sda2" on the kernel command line.
      
      The patch "pm: rework includes, remove arch ifdefs V2" is
      needed to allow the generic swsusp code to build properly.
      
      Hibernation is not enabled with this patch though, a patch
      setting ARCH_HIBERNATION_POSSIBLE will be submitted later.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      2ef7f0da