diff options
author | Nathan Harold <nharold@google.com> | 2015-07-28 14:54:58 -0700 |
---|---|---|
committer | Nathan Harold <nharold@google.com> | 2015-07-29 22:43:55 +0000 |
commit | a015339ee4484ad46ae8c60138f6e478cc0e3002 (patch) | |
tree | 5a266159cf1c08d92485ef4e889ba5702a8c11f2 | |
parent | 40aa12695e57655ddc4aa2e7e6dbac168ccb578c (diff) | |
download | android_hardware_ril-a015339ee4484ad46ae8c60138f6e478cc0e3002.tar.gz android_hardware_ril-a015339ee4484ad46ae8c60138f6e478cc0e3002.tar.bz2 android_hardware_ril-a015339ee4484ad46ae8c60138f6e478cc0e3002.zip |
Modify RIL Unsol Message Wakelock to 200ms
bug: 22456054
Change-Id: Id41e001f98b455bec5f004438f5d8498b17aaf2d
-rw-r--r-- | libril/ril.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libril/ril.cpp b/libril/ril.cpp index fc4ea51..4424561 100644 --- a/libril/ril.cpp +++ b/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" @@ -216,7 +218,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; |