diff options
| author | Helen Fornazier <[email protected]> | 2019-03-06 22:42:38 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2019-03-19 19:27:22 +0000 |
| commit | 2978a505aaa981b279ef359f74ba93d25098e0a0 (patch) | |
| tree | 8a6dbce7956bb9fcfc7cedf8a4483ccd603096ed /drivers/media/platform/vimc/vimc-capture.c | |
| parent | media: vimc: deb: fix default sink bayer format (diff) | |
| download | kernel-2978a505aaa981b279ef359f74ba93d25098e0a0.tar.gz kernel-2978a505aaa981b279ef359f74ba93d25098e0a0.zip | |
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 <[email protected]>
Signed-off-by: Helen Koike <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-capture.c')
0 files changed, 0 insertions, 0 deletions
