summaryrefslogtreecommitdiffstats
path: root/include/asm-s390/thread_info.h
diff options
context:
space:
mode:
authorSascha Sommer <saschasommer@freenet.de>2007-11-04 01:22:38 +0100
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 22:01:55 +0100
commit5a80415bcabf2b59e8c34db6e743c54582cfd3c2 (patch)
tree0702641680d71fc50826cb98c3e330d35b993aa5 /include/asm-s390/thread_info.h
parentV4L/DVB (6537): Add entry for Pixelview Prolink PlayTV USB 2.0 (diff)
downloadlinux-5a80415bcabf2b59e8c34db6e743c54582cfd3c2.tar.xz
linux-5a80415bcabf2b59e8c34db6e743c54582cfd3c2.zip
V4L/DVB (6538): em28xx: fix locking to allow accesses from 2 different threads at the same time
The attached patch modifies the em28xx driver so that there can be ioctls from multiple different threads. This is necessary for capture apps like MPlayer that use different threads for capturing and channel tuning. Now the locking is only done for the ioctls that change properties of the device or access the i2c bus. It also removes some locks that look unnecessary: In em28xx_init_dev: the videodevice is not registered yet so nothing can access the hardware meanwhile, the device struct is not assigned to the interface yet so no race with disconnect is possible In em28xx_release_resources: it gets only called when dev->lock is already held Signed-off-by: Sascha Sommer <saschasommer@freenet.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include/asm-s390/thread_info.h')
0 files changed, 0 insertions, 0 deletions