From: zwl Date: Wed, 11 Jun 2014 07:00:17 +0000 (+0800) Subject: rk fb: modify wake_up_interruptible to wake_up for update_regs_wait X-Git-Tag: firefly_0821_release~5148 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d97c2db79b71c22a353de9d92f862dcdc9f68768;p=firefly-linux-kernel-4.4.55.git rk fb: modify wake_up_interruptible to wake_up for update_regs_wait --- diff --git a/drivers/video/rockchip/rk_fb.c b/drivers/video/rockchip/rk_fb.c index 7545d2389f5a..e1ed621108a7 100755 --- a/drivers/video/rockchip/rk_fb.c +++ b/drivers/video/rockchip/rk_fb.c @@ -1578,7 +1578,7 @@ static void rk_fb_update_regs_handler(struct kthread_work *work) } if (dev_drv->wait_fs && list_empty(&dev_drv->update_regs_list)) - wake_up_interruptible_all(&dev_drv->update_regs_wait); + wake_up(&dev_drv->update_regs_wait); } static int rk_fb_check_config_var(struct rk_fb_area_par *area_par, @@ -1938,12 +1938,11 @@ static int rk_fb_set_win_config(struct fb_info *info, list_empty(&saved_list); mutex_unlock(&dev_drv->update_regs_list_lock); if (!list_is_empty) - ret = wait_event_interruptible(dev_drv->update_regs_wait, + wait_event(dev_drv->update_regs_wait, list_empty(&dev_drv->update_regs_list) && list_empty(&saved_list)); - if (!ret) { - rk_fb_update_reg(dev_drv, regs); - kfree(regs); - } + + rk_fb_update_reg(dev_drv, regs); + kfree(regs); } err: