Re: [Mjpeg-users] [PATCH 35/57] media: irq: Remove IRQF_DISABLED

2011-09-21 Thread Wolfram Sang
On Wed, Sep 21, 2011 at 05:28:36PM +0800, Yong Zhang wrote: > Since commit [c58543c8: genirq: Run irq handlers with interrupts disabled], > We run all interrupt handlers with interrupts disabled > and we even check and yell when an interrupt handler > returns with interrupts enabled (see commit [b7

Re: [Mjpeg-users] [PATCH 35/57] media: irq: Remove IRQF_DISABLED

2011-09-21 Thread Guennadi Liakhovetski
On Wed, 21 Sep 2011, Yong Zhang wrote: > Since commit [c58543c8: genirq: Run irq handlers with interrupts disabled], > We run all interrupt handlers with interrupts disabled > and we even check and yell when an interrupt handler > returns with interrupts enabled (see commit [b738a50a: > genirq: Wa

Re: [Mjpeg-users] [PATCH 35/57] media: irq: Remove IRQF_DISABLED

2011-09-21 Thread Thomas Gleixner
On Wed, 21 Sep 2011, Mauro Carvalho Chehab wrote: > Em 21-09-2011 06:28, Yong Zhang escreveu: > > Since commit [c58543c8: genirq: Run irq handlers with interrupts disabled], > > We run all interrupt handlers with interrupts disabled > > and we even check and yell when an interrupt handler > > retu

Re: [Mjpeg-users] [PATCH 35/57] media: irq: Remove IRQF_DISABLED

2011-09-21 Thread Yong Zhang
On Wed, Sep 21, 2011 at 12:27:37PM +0200, Wolfram Sang wrote: > On Wed, Sep 21, 2011 at 05:28:36PM +0800, Yong Zhang wrote: > > Since commit [c58543c8: genirq: Run irq handlers with interrupts disabled], > > We run all interrupt handlers with interrupts disabled > > and we even check and yell when

[Mjpeg-users] writing multi threaded code

2011-09-21 Thread Mark Heath
Hi Guys, I'm wondering if anyone has some skeleton C code for writing multithreaded filters. Similar to this kind of pseudo code; while not end of file { read frame create threads (number of CPUs) for y = 1 to height { while no available threads { w

Re: [Mjpeg-users] writing multi threaded code

2011-09-21 Thread Michael Hanke
Mark, The easiest solution is most probably to use OpenMP if you have a serial program up and running. it consists "simply" of adding pragmas to the serial code. Any compiler should be able to handle this today. This avoids going to the basics like pthreads. It's a fast solution, but it's effic