VirtualBox

Changeset 19271 in vbox


Ignore:
Timestamp:
Apr 30, 2009 10:13:02 AM (16 years ago)
Author:
vboxsync
Message:

Solaris/vboxdrv: suspend/resume ring0 notifications.

File:
1 edited

Legend:

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

    r16905 r19271  
    5555#include <iprt/spinlock.h>
    5656#include <iprt/mp.h>
     57#include <iprt/power.h>
    5758#include <iprt/process.h>
    5859#include <iprt/thread.h>
     
    320321
    321322            /*
     323             * Register for suspend/resume notifications
     324             */
     325            rc = ddi_prop_update_string(DDI_DEV_T_ANY, pDip, "pm-hardware-state", "needs-suspend-resume");
     326
     327            /*
    322328             * Register ourselves as a character device, pseudo-driver
    323329             */
     
    343349        case DDI_RESUME:
    344350        {
     351#if 0
    345352            RTSemFastMutexRequest(g_DevExt.mtxGip);
    346353            if (g_DevExt.pGipTimer)
     
    348355
    349356            RTSemFastMutexRelease(g_DevExt.mtxGip);
     357#endif
     358            RTPowerSignalEvent(RTPOWEREVENT_RESUME);
    350359            return DDI_SUCCESS;
    351360        }
     
    389398        case DDI_SUSPEND:
    390399        {
     400#if 0
    391401            RTSemFastMutexRequest(g_DevExt.mtxGip);
    392402            if (g_DevExt.pGipTimer && g_DevExt.cGipUsers > 0)
     
    394404
    395405            RTSemFastMutexRelease(g_DevExt.mtxGip);
     406#endif
     407            RTPowerSignalEvent(RTPOWEREVENT_SUSPEND);
    396408            return DDI_SUCCESS;
     409
    397410        }
    398411
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