remarkable-linux/drivers/media/pci/cx25821
Bhaktipriya Shridhar 072973ba67 [media] cx25821: Remove deprecated create_singlethread_workqueue
The workqueue "_irq_audio_queues" runs the audio upstream handler.
It has a single work item(&dev->_audio_work_entry) and hence doesn't
require ordering. Also, it is not being used on a memory reclaim path.
Hence, the singlethreaded workqueue has been replaced with the use of
system_wq.

System workqueues have been able to handle high level of concurrency
for a long time now and hence it's not required to have a singlethreaded
workqueue just to gain concurrency. Unlike a dedicated per-cpu workqueue
created with create_singlethread_workqueue(), system_wq allows multiple
work items to overlap executions even on the same CPU; however, a
per-cpu workqueue doesn't have any CPU locality or global ordering
guarantee unless the target CPU is explicitly specified and thus the
increase of local concurrency shouldn't make any difference.

The work item has been flushed in cx25821_stop_upstream_audio() to ensure
that nothing is pending when the driver is disconnected.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-09-22 12:49:37 -03:00
..
cx25821-alsa.c [media] pci: constify snd_pcm_ops structures 2016-09-19 16:18:42 -03:00
cx25821-audio-upstream.c [media] cx25821: Remove deprecated create_singlethread_workqueue 2016-09-22 12:49:37 -03:00
cx25821-audio-upstream.h
cx25821-audio.h
cx25821-biffuncs.h [media] cx25821: get rid of warning: no previous prototype 2012-10-27 18:02:07 -02:00
cx25821-cards.c [media] cx25821: fix sparse warnings 2013-10-17 06:16:46 -03:00
cx25821-core.c [media] media/pci: convert drivers to use the new vb2_queue dev field 2016-07-08 14:37:17 -03:00
cx25821-gpio.c [media] cx25821: remove bogus dependencies 2013-04-16 18:03:27 -03:00
cx25821-i2c.c [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
cx25821-medusa-defines.h
cx25821-medusa-reg.h [media] cx25821: cx25821-medusa-reg.h: fix 0x0x prefix 2015-05-13 16:43:49 -03:00
cx25821-medusa-video.c [media] cx25821: fix sparse warnings 2013-10-17 06:16:46 -03:00
cx25821-medusa-video.h [media] cx25821: fix sparse warnings 2013-10-17 06:16:46 -03:00
cx25821-reg.h
cx25821-sram.h
cx25821-video-upstream.c [media] cx25821: fix sparse warning 2014-09-03 10:32:02 -03:00
cx25821-video-upstream.h
cx25821-video.c [media] pci: constify vb2_ops structures 2016-09-19 16:21:42 -03:00
cx25821-video.h [media] cx25821: setup output nodes correctly 2013-04-16 18:09:57 -03:00
cx25821.h [media] cx25821: Remove deprecated create_singlethread_workqueue 2016-09-22 12:49:37 -03:00
Kconfig [media] cx25821: convert to vb2 2014-12-23 10:17:47 -02:00
Makefile [media] cx25821: remove video output support 2014-12-23 10:22:00 -02:00