PM/Sleep: Start killing wakelocks after two minutes of idle (120s)
Signed-off-by: Tyler Nijmeh <tylernij@gmail.com> Signed-off-by: ThunderStorms21th nalas <pinakastorm@gmail.com> (cherry picked from commit 9445309c30e841387b7c603fade2e229be8384bd)
This commit is contained in:
parent
40d275b26e
commit
9f02fbd846
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ static inline void decrement_wakelocks_number(void) {}
|
||||||
|
|
||||||
#ifdef CONFIG_PM_WAKELOCKS_GC
|
#ifdef CONFIG_PM_WAKELOCKS_GC
|
||||||
#define WL_GC_COUNT_MAX 100
|
#define WL_GC_COUNT_MAX 100
|
||||||
#define WL_GC_TIME_SEC 300
|
#define WL_GC_TIME_SEC 120 /* default : 300s */
|
||||||
|
|
||||||
static void __wakelocks_gc(struct work_struct *work);
|
static void __wakelocks_gc(struct work_struct *work);
|
||||||
static LIST_HEAD(wakelocks_lru_list);
|
static LIST_HEAD(wakelocks_lru_list);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue