mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
input: ets_fpc_mmi: fix wakelock timeout value.
When interrupt comes, kernel need take 1500ms wakelock, make sure HAL can handle this interrupt. If CONDIF_HAS_WAKELOCK is not definded, __pm_wakeup_event is called. For this function, seconed parameter is msecs value, so do not translate this value by using msecs_to_jiffies. Change-Id: I198e145a118f886676027df2fd966df169530604 Signed-off-by: haojl2 <haojl2@motorola.com> Reviewed-on: https://gerrit.mot.com/1418021 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
551a2454aa
commit
471271e046
1 changed files with 2 additions and 2 deletions
|
|
@ -241,7 +241,7 @@ static irqreturn_t fp_eint_func(int irq, void *dev_id)
|
|||
#ifdef CONFIG_HAS_WAKELOCK
|
||||
wake_lock_timeout(&ets_wake_lock, msecs_to_jiffies(1500));
|
||||
#else
|
||||
__pm_wakeup_event(&ets_wake_lock, msecs_to_jiffies(1500));
|
||||
__pm_wakeup_event(&ets_wake_lock, 1500);
|
||||
#endif
|
||||
#ifdef CONFIG_DISPLAY_SPEED_UP
|
||||
if (is_auth_ready) {
|
||||
|
|
@ -265,7 +265,7 @@ static irqreturn_t fp_eint_func_ll(int irq, void *dev_id)
|
|||
#ifdef CONFIG_HAS_WAKELOCK
|
||||
wake_lock_timeout(&ets_wake_lock, msecs_to_jiffies(1500));
|
||||
#else
|
||||
__pm_wakeup_event(&ets_wake_lock, msecs_to_jiffies(1500));
|
||||
__pm_wakeup_event(&ets_wake_lock, 1500);
|
||||
#endif
|
||||
return IRQ_RETVAL(IRQ_HANDLED);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue