]> git.karo-electronics.de Git - mv-sheeva.git/commit
[media] V4L: improve the BKL replacement heuristic
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 26 Nov 2010 09:47:28 +0000 (06:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 1 Dec 2010 22:10:19 +0000 (20:10 -0200)
commit879aa24d6394aa04b690a600a41ff500441ad384
tree024886e8a84ab3f7e88c1e2c5aeceae28cc344bb
parent2877842de8cbf6272b0a851cb12587b7dd8c2afb
[media] V4L: improve the BKL replacement heuristic

The BKL replacement mutex had some serious performance side-effects on
V4L drivers. It is replaced by a better heuristic that works around the
worst of the side-effects.

Read the v4l2-dev.c comments for the whole sorry story. This is a
temporary measure only until we can convert all v4l drivers to use
unlocked_ioctl.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-dev.c
drivers/media/video/v4l2-device.c
include/media/v4l2-device.h