diff options
Diffstat (limited to 'drivers/gpu/pvr/mutex.c')
-rw-r--r-- | drivers/gpu/pvr/mutex.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/drivers/gpu/pvr/mutex.c b/drivers/gpu/pvr/mutex.c index aedc8d0..742fa03 100644 --- a/drivers/gpu/pvr/mutex.c +++ b/drivers/gpu/pvr/mutex.c @@ -37,12 +37,9 @@ #include <services.h> #include "mutex.h" -#include "osfunc.h" -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)) -extern PVRSRV_LINUX_MUTEX gPVRSRVLock; -IMG_UINT32 ui32BridgeLockPID = 0; +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)) IMG_VOID LinuxInitMutex(PVRSRV_LINUX_MUTEX *psPVRSRVMutex) { @@ -52,8 +49,6 @@ IMG_VOID LinuxInitMutex(PVRSRV_LINUX_MUTEX *psPVRSRVMutex) IMG_VOID LinuxLockMutex(PVRSRV_LINUX_MUTEX *psPVRSRVMutex) { mutex_lock(psPVRSRVMutex); - if(psPVRSRVMutex == &gPVRSRVLock) - ui32BridgeLockPID = OSGetCurrentProcessIDKM(); } PVRSRV_ERROR LinuxLockMutexInterruptible(PVRSRV_LINUX_MUTEX *psPVRSRVMutex) @@ -64,24 +59,17 @@ PVRSRV_ERROR LinuxLockMutexInterruptible(PVRSRV_LINUX_MUTEX *psPVRSRVMutex) } else { - if(psPVRSRVMutex == &gPVRSRVLock) - ui32BridgeLockPID = OSGetCurrentProcessIDKM(); return PVRSRV_OK; } } IMG_INT32 LinuxTryLockMutex(PVRSRV_LINUX_MUTEX *psPVRSRVMutex) { - IMG_UINT32 err = mutex_trylock(psPVRSRVMutex); - if(psPVRSRVMutex == &gPVRSRVLock) - ui32BridgeLockPID = OSGetCurrentProcessIDKM(); - return err; + return mutex_trylock(psPVRSRVMutex); } IMG_VOID LinuxUnLockMutex(PVRSRV_LINUX_MUTEX *psPVRSRVMutex) { - if(psPVRSRVMutex == &gPVRSRVLock) - ui32BridgeLockPID = 0; mutex_unlock(psPVRSRVMutex); } |