Changeset 21566 in vbox for trunk/src/VBox/HostDrivers/Support/solaris
- Timestamp:
- Jul 14, 2009 9:34:23 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 50047
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c
r21096 r21566 319 319 * Register for suspend/resume notifications 320 320 */ 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")); 322 325 323 326 /* … … 353 356 #endif 354 357 RTPowerSignalEvent(RTPOWEREVENT_RESUME); 358 LogRel((DEVICE_NAME ":Awakened from suspend.\n")); 355 359 return DDI_SUCCESS; 356 360 } … … 402 406 #endif 403 407 RTPowerSignalEvent(RTPOWEREVENT_SUSPEND); 408 LogRel((DEVICE_NAME ":Falling to suspend mode.\n")); 404 409 return DDI_SUCCESS; 405 410
Note:
See TracChangeset
for help on using the changeset viewer.