]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: vsp1: Don't sleep in atomic context
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 13 Apr 2015 14:43:40 +0000 (11:43 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 17 Jul 2015 13:03:43 +0000 (10:03 -0300)
commitd13c2a05dd27dc69f22268db162cbaf4ade50c44
tree367b5ebcd62ae4e784d69bb19b880340ce7e8ebe
parent7071e856ca7a2360918c9fceebcd1babf6a83794
[media] v4l: vsp1: Don't sleep in atomic context

The vsp1_entity_is_streaming() function is called in atomic context when
queuing buffers, and sleeps due to a mutex. As the mutex just protects
access to one structure field, fix this by replace the mutex with a
spinlock.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vsp1/vsp1_entity.c
drivers/media/platform/vsp1/vsp1_entity.h