16 Nov, 2010

1 commit

  • While at it, fix two checkpatch errors.
    Several non-const struct instances constified by this patch were added after
    the introduction of platform_suspend_ops in checkpatch.pl's list of "should
    be const" structs (79404849e90a41ea2109bd0e2f7c7164b0c4ce73).

    Patch against mainline.
    Inspired by hunks of the grsecurity patch, updated for newer kernels.

    Signed-off-by: Lionel Debroux
    Acked-by: Ingo Molnar
    Signed-off-by: Jiri Kosina

    Lionel Debroux
     

08 Aug, 2008

1 commit


05 Aug, 2008

1 commit


02 Jul, 2008

1 commit

  • Implement Standby support. In this mode, we'll suspend all drivers,
    put the SDRAM in self-refresh mode and switch off the HSB bus
    ("frozen" mode.)

    Implement Suspend-to-mem support. In this mode, we suspend all
    drivers, put the SDRAM into self-refresh mode and switch off all
    internal clocks except the 32 kHz oscillator ("stop" mode.)

    The lowest-level suspend code runs from a small portion of SRAM
    allocated at startup time. This gets rid of a small potential race
    with the SDRAM where we might try to enter self-refresh mode in the
    middle of an icache burst. We also relocate all interrupt and
    exception handlers to SRAM during the small window when we enter and
    exit the low-power modes.

    We don't need to do any special tricks to start and stop the PLL. The
    main clock is automatically gated by hardware until the PLL is stable.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen