Steven Rostedt <[email protected]> wrote: > > > On Fri, 12 May 2006, Andrew Morton wrote: > > > > > 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. > > Any longer than this! > > in boomerang_start_xmit() > > spin_lock_irqsave(&vp->lock, flags); > > /* Wait for the stall to complete. */ > issue_and_wait(dev, DownStall); > > Pretty big wait! > > [...] > > spin_unlock_irqrestore(&vp->lock, flags); > > > Where we have in issue_and_wait > > static void > issue_and_wait(struct net_device *dev, int cmd) > { > > [...] > > /* OK, that didn't work. Do it the slow way. One second */ > for (i = 0; i < 100000; i++) { > > [...] > } > > So this can have interrupts off for over a second! > Well, only if the hardware's fratzed. Normally this is quick. otoh vortex_timer() will play with the MII interface, which is slooooow. - 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)
- 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: 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: rt20 patch question
- Prev by Date: Re: [PATCH 2/9] nsproxy: incorporate fs namespace
- Next by Date: Re: swapping and oom-killer: gfp_mask=0x201d2, order=0
- 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):