gpu: pvr: remove sPowerStateChangeResource lock
authorImre Deak <imre.deak@nokia.com>
Mon, 5 Apr 2010 21:12:43 +0000 (00:12 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:40 +0000 (21:09 +0300)
This lock was only created / destroyed, but nowhere actually used.
Remove it.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
CC: Mark Underwood <mark.underwood@imgtec.com>
CC: Mark Riding <mark.riding@imgtec.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@nokia.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@nokia.com>
pvr/power.c
pvr/pvrsrv.c
pvr/syscommon.h

index 1cfeb41..8a0821e 100644 (file)
@@ -469,11 +469,6 @@ IMG_BOOL PVRSRVIsDevicePowered(u32 ui32DeviceIndex)
        if (eError != PVRSRV_OK)
                return IMG_FALSE;
 
-       if (OSIsResourceLocked(&psSysData->sPowerStateChangeResource,
-                                                               KERNEL_ID) ||
-           OSIsResourceLocked(&psSysData->sPowerStateChangeResource, ISR_ID))
-               return IMG_FALSE;
-
        psPowerDevice = psSysData->psPowerDeviceList;
        while (psPowerDevice) {
                if (psPowerDevice->ui32DeviceIndex == ui32DeviceIndex)
index 411d9a0..2a11fe6 100644 (file)
@@ -140,10 +140,6 @@ enum PVRSRV_ERROR PVRSRVInit(struct SYS_DATA *psSysData)
        if (eError != PVRSRV_OK)
                goto Error;
 
-       eError = OSCreateResource(&psSysData->sPowerStateChangeResource);
-       if (eError != PVRSRV_OK)
-               goto Error;
-
        psSysData->eCurrentPowerState = PVRSRV_POWER_STATE_D0;
        psSysData->eFailedPowerState = PVRSRV_POWER_Unspecified;
 
index e576fce..9d695bc 100644 (file)
@@ -57,7 +57,6 @@ struct SYS_DATA {
        struct SYS_DEVICE_ID sDeviceID[SYS_DEVICE_COUNT];
        struct PVRSRV_DEVICE_NODE *psDeviceNodeList;
        struct PVRSRV_POWER_DEV *psPowerDeviceList;
-       struct PVRSRV_RESOURCE sPowerStateChangeResource;
        enum PVR_POWER_STATE eCurrentPowerState;
        enum PVR_POWER_STATE eFailedPowerState;
        u32 ui32CurrentOSPowerState;
@@ -153,7 +152,6 @@ static inline enum PVRSRV_ERROR SysInitialiseCommon(struct SYS_DATA *psSysData)
 static inline void SysDeinitialiseCommon(struct SYS_DATA *psSysData)
 {
        PVRSRVDeInit(psSysData);
-       OSDestroyResource(&psSysData->sPowerStateChangeResource);
 }
 
 #if !(defined(NO_HARDWARE) && defined(__KERNEL__))