mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
msm: fb: make the pan task interruptible
This commit is contained in:
parent
299732780b
commit
6c9ad4d7e6
1 changed files with 5 additions and 2 deletions
|
@ -1805,9 +1805,12 @@ static int msm_fb_pan_idle(struct msm_fb_data_type *mfd)
|
|||
mutex_lock(&mfd->sync_mutex);
|
||||
if (mfd->is_committing) {
|
||||
mutex_unlock(&mfd->sync_mutex);
|
||||
ret = wait_for_completion_timeout(&mfd->commit_comp,
|
||||
ret = wait_for_completion_interruptible_timeout(
|
||||
&mfd->commit_comp,
|
||||
msecs_to_jiffies(WAIT_FENCE_TIMEOUT));
|
||||
if (ret <= 0)
|
||||
if (ret < 0)
|
||||
ret = -ERESTARTSYS;
|
||||
else if (!ret)
|
||||
pr_err("%s wait for commit_comp timeout %d %d",
|
||||
__func__, ret, mfd->is_committing);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue