Helen Fornazier 2978a505aa media: vimc: stream: fix thread state before sleep
The state TASK_UNINTERRUPTIBLE should be set just before
schedule_timeout() call, so it knows the sleep mode it should enter.
There is no point in setting TASK_UNINTERRUPTIBLE at the initialization
of the thread as schedule_timeout() will set the state back to
TASK_RUNNING.

This fixes a warning in __might_sleep() call, as it's expecting the
task to be in TASK_RUNNING state just before changing the state to
a sleeping state.

Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-03-19 15:27:22 -04:00
..
2019-03-01 09:35:21 -05:00
2019-03-01 09:35:21 -05:00
2019-03-01 09:35:21 -05:00
2019-03-10 10:58:43 -07:00
2019-03-01 09:35:21 -05:00
2019-03-01 09:35:21 -05:00
2019-03-01 09:35:21 -05:00
2019-03-01 09:35:21 -05:00
2018-11-23 05:42:49 -05:00