linux/drivers/media/platform/vimc
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
..
Kconfig
Makefile media: vimc: Add vimc-streamer for stream control 2019-02-07 12:23:09 -05:00
vimc-capture.c media: vimc: free vimc_cap_device when the last user disappears 2019-03-19 13:31:37 -04:00
vimc-common.c media: vimc: use new release op 2019-03-19 13:34:16 -04:00
vimc-common.h media: vimc: use new release op 2019-03-19 13:34:16 -04:00
vimc-core.c media: vimc: zero the media_device on probe 2019-03-19 13:30:32 -04:00
vimc-debayer.c media: vimc: deb: fix default sink bayer format 2019-03-19 14:04:54 -04:00
vimc-scaler.c media: vimc: use new release op 2019-03-19 13:34:16 -04:00
vimc-sensor.c media: vimc: use new release op 2019-03-19 13:34:16 -04:00
vimc-streamer.c media: vimc: stream: fix thread state before sleep 2019-03-19 15:27:22 -04:00
vimc-streamer.h media: vimc: Add vimc-streamer for stream control 2019-02-07 12:23:09 -05:00