All of lore.kernel.org
 help / color / mirror / Atom feed
From: george anzinger <george@mvista.com>
To: root@chaos.analogic.com
Cc: Xinwen - Fu <xinwenfu@cs.tamu.edu>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: kernel timers vs network card interrupt
Date: Thu, 04 Jul 2002 00:46:39 -0700	[thread overview]
Message-ID: <3D23FD5F.19C0DDDC@mvista.com> (raw)
In-Reply-To: Pine.LNX.3.95.1020703143207.1862A-100000@chaos.analogic.com

"Richard B. Johnson" wrote:
> 
> On Wed, 3 Jul 2002, Xinwen - Fu wrote:
> 
> > Hi, all,
> >       I'm curious that if a network card interrupt happens at the same
> > time as the kernel timer expires, what will happen?
> >
> >       It's said the kernel timer is guaranteed accurate. But if
> > interrupts are not masked off, the network interrupt also should get
> > response when a kernel timer expires. So I don't know who will preempt
> > who.
> >
> >       Thanks for information!
> >
> > Xinwen Fu
> 
> The highest priority interrupt will get serviced first. It's the timer.
> Interrupts are serviced in priority-order. Hardware "remembers" which
> ones are pending so none are lost if some driver doesn't do something
> stupid.

That is true as far as it goes, HOWEVER, timers are serviced
by bottom half code which is run at the end of the
interrupt, WITH THE INTERRUPT SYSTEM ON.  Therefore, timer
servicing can be interrupted by an interrupt and thus be
delayed.
 
-- 
George Anzinger   george@mvista.com
High-res-timers: 
http://sourceforge.net/projects/high-res-timers/
Real time sched:  http://sourceforge.net/projects/rtsched/
Preemption patch:
http://www.kernel.org/pub/linux/kernel/people/rml

  parent reply	other threads:[~2002-07-04  7:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-03 18:12 kernel timers vs network card interrupt Xinwen - Fu
2002-07-03 18:35 ` Richard B. Johnson
2002-07-03 23:54   ` timer queue is still influenced by network load Xinwen - Fu
2002-07-08 12:27     ` Richard B. Johnson
2002-07-04  7:46   ` george anzinger [this message]
2002-07-04 16:10     ` kernel timers vs network card interrupt Xinwen - Fu
2002-07-04 18:30       ` Mark Hahn
2002-07-05  6:11       ` george anzinger
2002-07-05 18:50         ` Xinwen - Fu
2002-07-06  4:21       ` Bill Davidsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D23FD5F.19C0DDDC@mvista.com \
    --to=george@mvista.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.com \
    --cc=xinwenfu@cs.tamu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.