Graphic: fix mutex starvation issue when changing live wallpaper many times.
authorPan Zhenjie <zhenjie.pan@intel.com>
Tue, 20 Mar 2012 04:57:16 +0000 (12:57 +0800)
committerbuildbot <buildbot@intel.com>
Fri, 23 Mar 2012 10:34:36 +0000 (03:34 -0700)
commit466ee1606f4b5d11275c980f491c8adb12f8e560
tree818fcf02b276c57924229c4c011c106c44ac9aca
parent57a75a8bfd4e2a291a4143d7b5b955b887bab860
Graphic: fix mutex starvation issue when changing live wallpaper many times.

BZ: 26394

PVRSRV_BridgeDispatchKM and PVRDRMUnprivCmd have mutex protection in themselves.
So should use DRM_UNLOCKED.
Wallpaper and surfaceflinger will call drm_ioctl.
If do not use DRM_UNLOCKED, PVRSRV_BridgeDispatchKM will be protected by another mutex.
And it will cause mutex starvation issue.

Change-Id: I060f78db4bfeede32cabe581cd86634ac208091f
Signed-off-by: Pan Zhenjie <zhenjie.pan@intel.com>
Reviewed-on: http://android.intel.com:8080/39710
Reviewed-by: Shi, Yang A <yang.a.shi@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/staging/mrst/drv/psb_drv.c