summaryrefslogtreecommitdiffstats
path: root/ril
diff options
context:
space:
mode:
authorNathan Harold <nharold@google.com>2015-07-28 14:54:58 -0700
committerEthan Chen <intervigil@gmail.com>2015-10-19 12:16:41 -0700
commitd6306fa7d2cd5fa10e338128a0c55f1fb78dc3fd (patch)
tree37b9a3f24ea8f946c83d5be2f9c4ba27f4a8f365 /ril
parent8e755599291e9f4dabf113011c5ac672e30027c9 (diff)
downloadandroid_hardware_samsung-d6306fa7d2cd5fa10e338128a0c55f1fb78dc3fd.tar.gz
android_hardware_samsung-d6306fa7d2cd5fa10e338128a0c55f1fb78dc3fd.tar.bz2
android_hardware_samsung-d6306fa7d2cd5fa10e338128a0c55f1fb78dc3fd.zip
Modify RIL Unsol Message Wakelock to 200ms
bug: 22456054 Change-Id: Id41e001f98b455bec5f004438f5d8498b17aaf2d
Diffstat (limited to 'ril')
-rw-r--r--ril/libril/ril.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ril/libril/ril.cpp b/ril/libril/ril.cpp
index f40fce4..e2a1c8b 100644
--- a/ril/libril/ril.cpp
+++ b/ril/libril/ril.cpp
@@ -64,6 +64,8 @@ namespace android {
#define ANDROID_WAKE_LOCK_NAME "radio-interface"
+#define ANDROID_WAKE_LOCK_SECS 0
+#define ANDROID_WAKE_LOCK_USECS 200000
#define PROPERTY_RIL_IMPL "gsm.version.ril-impl"
@@ -219,7 +221,7 @@ static struct ril_event s_wake_timeout_event;
static struct ril_event s_debug_event;
-static const struct timeval TIMEVAL_WAKE_TIMEOUT = {1,0};
+static const struct timeval TIMEVAL_WAKE_TIMEOUT = {ANDROID_WAKE_LOCK_SECS,ANDROID_WAKE_LOCK_USECS};
static pthread_mutex_t s_startupMutex = PTHREAD_MUTEX_INITIALIZER;