提交 1788180e 编写于 作者: R Rene Herman 提交者: Dmitry Torokhov

Input: ucb1400_ts - use schedule_timeout_uninterruptible

Given that the code is not checking for signals it should
use uninterruptible sleep.
Signed-off-by: NRene Herman <rene.herman@gmail.com>
Acked-by: NNicolas Pitre <nico@cam.org>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 2f9d2827
......@@ -130,8 +130,7 @@ static unsigned int ucb1400_adc_read(struct ucb1400 *ucb, u16 adc_channel)
if (val & UCB_ADC_DAT_VALID)
break;
/* yield to other processes */
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(1);
schedule_timeout_uninterruptible(1);
}
return UCB_ADC_DAT_VALUE(val);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册