VirtualBox

Ignore:
Timestamp:
Jul 14, 2009 9:34:23 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50047
Message:

Solaris/vboxdrv: Suspend-resume notification again.

File:
1 edited

Legend:

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

    r21096 r21566  
    319319             * Register for suspend/resume notifications
    320320             */
    321             rc = ddi_prop_update_string(DDI_DEV_T_ANY, pDip, "pm-hardware-state", "needs-suspend-resume");
     321            rc = ddi_prop_create(DDI_DEV_T_NONE, pDip, DDI_PROP_CANSLEEP /* kmem alloc can sleep */,
     322                                "pm-hardware-state", "needs-suspend-resume", sizeof("needs-suspend-resume"));
     323            if (rc != DDI_PROP_SUCCESS)
     324                LogRel((DEVICE_NAME ":Suspend/Resume notification registeration failed.\n"));
    322325
    323326            /*
     
    353356#endif
    354357            RTPowerSignalEvent(RTPOWEREVENT_RESUME);
     358            LogRel((DEVICE_NAME ":Awakened from suspend.\n"));
    355359            return DDI_SUCCESS;
    356360        }
     
    402406#endif
    403407            RTPowerSignalEvent(RTPOWEREVENT_SUSPEND);
     408            LogRel((DEVICE_NAME ":Falling to suspend mode.\n"));
    404409            return DDI_SUCCESS;
    405410
Note: See TracChangeset for help on using the changeset viewer.

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