Steven Rostedt <[email protected]> wrote: > > Use this patch instead. It needs an irq disable. But, believe it or not, > on SMP this is actually better. If the irq is shared (as it is in Mark's > case), we don't stop the irq of other devices from being handled on > another CPU (unfortunately for Mark, he pinned all interrupts to one CPU). > > Andrew, > > should this be changed in mainline too? I suppose so - we're taking the lock with spin_lock_bh(), but it can also be taken by this CPU from the interrupt, so it'll deadlock. But lo! We've done disable_irq(), so the interrupt won't be happening. So yes, doing spin_lock_irq() (irqrestore isn't needed in a timer handler) instead of disable_irq() in vortex_timer() looks OK. One does wonder how long we'll hold off interrupts though. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: 3c59x vortex_timer rt hack (was: rt20 patch question)
- From: Steven Rostedt <[email protected]>
- Re: 3c59x vortex_timer rt hack (was: rt20 patch question)
- From: Steven Rostedt <[email protected]>
- Re: 3c59x vortex_timer rt hack (was: rt20 patch question)
- References:
- Re: rt20 patch question
- From: Mark Hounschell <[email protected]>
- Re: rt20 patch question
- From: Steven Rostedt <[email protected]>
- Re: rt20 patch question
- From: Mark Hounschell <[email protected]>
- Re: rt20 patch question
- From: Steven Rostedt <[email protected]>
- Re: rt20 patch question
- From: Mark Hounschell <[email protected]>
- Re: rt20 patch question
- From: Steven Rostedt <[email protected]>
- Re: rt20 patch question
- From: Mark Hounschell <[email protected]>
- Re: rt20 patch question
- From: Steven Rostedt <[email protected]>
- Re: rt20 patch question
- From: Ingo Molnar <[email protected]>
- Re: rt20 patch question
- From: Steven Rostedt <[email protected]>
- Re: rt20 patch question
- From: Ingo Molnar <[email protected]>
- 3c59x vortex_timer rt hack (was: rt20 patch question)
- From: Steven Rostedt <[email protected]>
- Re: 3c59x vortex_timer rt hack (was: rt20 patch question)
- From: Andrew Morton <[email protected]>
- Re: 3c59x vortex_timer rt hack (was: rt20 patch question)
- From: Steven Rostedt <[email protected]>
- Re: 3c59x vortex_timer rt hack (was: rt20 patch question)
- From: Steven Rostedt <[email protected]>
- Re: rt20 patch question
- Prev by Date: Re: rt20 patch question
- Next by Date: Re: Segfault on the i386 enter instruction
- Previous by thread: Re: 3c59x vortex_timer rt hack (was: rt20 patch question)
- Next by thread: Re: 3c59x vortex_timer rt hack (was: rt20 patch question)
- Index(es):