]> git.baikalelectronics.ru Git - kernel.git/commit
media: vsp1: Use reference counting for bodies
authorKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Fri, 18 May 2018 20:42:00 +0000 (16:42 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 25 May 2018 22:43:53 +0000 (18:43 -0400)
commita68b4fb9641f98b245a0b25b66940909bce1bab2
tree9fdee672155cd457e79c5b2b869f53be42780ae4
parentf4bce3160f6f5def36c16a4a88bd210420071aa3
media: vsp1: Use reference counting for bodies

Extend the display list body with a reference count, allowing bodies to
be kept as long as a reference is maintained. This provides the ability
to keep a cached copy of bodies which will not change, so that they can
be re-applied to multiple display lists.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vsp1/vsp1_clu.c
drivers/media/platform/vsp1/vsp1_dl.c
drivers/media/platform/vsp1/vsp1_lut.c