remove a read lock to work around a platform deadlock problem.
remove the lock in getStatefunction to work around a platform
deadlock problem.and also for read access, it is safe to remove
the lock to save CPU power
bug:11655066
Change-Id: Iddc0ada04010d95ae7d5fbc93ab837ebfc025b7a
diff --git a/src/com/android/bluetooth/btservice/AdapterProperties.java b/src/com/android/bluetooth/btservice/AdapterProperties.java
index b05becd..af8e416 100755
--- a/src/com/android/bluetooth/btservice/AdapterProperties.java
+++ b/src/com/android/bluetooth/btservice/AdapterProperties.java
@@ -203,10 +203,9 @@
* @return the mState
*/
int getState() {
- synchronized (mObject) {
- if (VDBG) debugLog("State = " + mState);
- return mState;
- }
+ /* remove the lock to work around a platform deadlock problem */
+ /* and also for read access, it is safe to remove the lock to save CPU power */
+ return mState;
}
/**