• David Brownell's avatar
    pm: boot time suspend selftest · 77437fd4
    David Brownell authored
    Boot-time test for system suspend states (STR or standby).  The generic
    RTC framework triggers wakeup alarms, which are used to exit those states.
    
      - Measures some aspects of suspend time ... this uses "jiffies" until
        someone converts it to use a timebase that works properly even while
        timer IRQs are disabled.
    
      - Triggered by a command line parameter.  By default nothing even
        vaguely troublesome will happen, but "test_suspend=mem" will give
        you a brief STR test during system boot.  (Or you may need to use
        "test_suspend=standby" instead, if your hardware needs that.)
    
    This isn't without problems.  It fires early enough during boot that for
    example both PCMCIA and MMC stacks have misbehaved.  The workaround in
    those cases was to boot without such media cards inserted.
    
    [matthltc@us.ibm.com: fix compile failure in boot time suspend selftest]
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Pavel Machek <pavel@suse.cz>
    Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
    Signed-off-by: default avatarMatt Helsley <matthltc@us.ibm.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    77437fd4
Kconfig 7.65 KB