VirtualBox

Ignore:
Timestamp:
Mar 12, 2010 3:20:39 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58762
Message:

Linux hosts: properly suspend/resume during host hibernation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r25484 r27334  
    232232static struct dev_pm_ops gPlatformPMOps =
    233233{
    234     .suspend = VBoxDrvSuspend,
    235     .resume = VBoxDrvResume,
     234    .suspend = VBoxDrvSuspend,  /* before entering deep sleep */
     235    .resume  = VBoxDrvResume,   /* after wakeup from deep sleep */
     236    .freeze  = VBoxDrvSuspend,  /* before creating hibernation image */
     237    .restore = VBoxDrvResume,   /* after wakeing up from hibernation */
    236238};
    237239# endif
     
    242244# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
    243245    .suspend = VBoxDrvSuspend,
    244     .resume = VBoxDrvResume,
     246    .resume  = VBoxDrvResume,
    245247# endif
    246248    /** @todo .shutdown? */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette