Commit 1788180e authored by Rene Herman's avatar Rene Herman Committed by 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: default avatarRene Herman <rene.herman@gmail.com>
Acked-by: default avatarNicolas Pitre <nico@cam.org>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment