msm: fb: make the pan task interruptible

This commit is contained in:
Naseer Ahmed 2012-10-04 23:15:22 -04:00 committed by Iliyan Malchev
parent 299732780b
commit 6c9ad4d7e6

View file

@ -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 {