lkml.org 
[lkml]   [1998]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Today Linus redesigns the networking driver interface (was Re: tulip driver in ...)
Linus Torvalds writes:
>
>
> On Wed, 23 Sep 1998, Richard Gooch wrote:
> >
> > I don't understand why selectively marking/not marking a BH doesn't
> > give you what you want.
>
> The problem with not marking the BH is that there would be no timeout.
>
> In contrast, marking the BH but asking the interrupt return code not
> to do BH processing will still guarantee that the BH gets processed
> eventually anyway: at the latest during the next timer tick, but
> possibly long before that if we're idle.

Ah, OK, I see. I was working under the assumption that an interrupt
handler would hold off marking its BH until it got a "marker"
interrupt. The example Ted cited with PPP fit this: mark the BH when
you get the last character in the frame.
I guess not all handlers have the luxury of an end-of-frame marker,
though.

BTW: if you're idling, that doesn't mean that BH's are called before
the next timer tick. AFAIK do_bottom_half() is only called on return
from syscall/interrupt and when rescheduling.
Waiting for the next timer tick would be horrible for latency,
though.

Regards,

Richard....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.212 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site