All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Houston <jim.houston@attbi.com>
To: "Mika Penttilä" <mika.penttila@kolumbus.fi>
Cc: linux-kernel@vger.kernel.org,
	high-res-timers-discourse@lists.sourceforge.net
Subject: Re: [PATCH] The alternate Posix timers patch7
Date: Sat, 07 Dec 2002 13:29:35 -0500	[thread overview]
Message-ID: <3DF23E0F.6BA703B8@attbi.com> (raw)
In-Reply-To: 3DF231E8.60703@kolumbus.fi

Mika Penttilä wrote:
> 
> Just out of curiosity, how does the "sharing the local APIC timer" work
> with the SMP local APIC timer scheme. Hopefully not disable periodic
> timer tick on that cpu totally...?
> 
> --Mika

Hi Mike,

Here is how I wire into the timer interrupt:

   inline void smp_local_timer_interrupt(struct pt_regs * regs)
   {
        int cpu = smp_processor_id();
 
	if (!run_posix_timers((void *)regs))
                return;
        ... the original code continues.

I keep an in kernel Posix style timer queued for each cpu at
HZ frequency.  If this timer has expired run_posix_timers returns
true and the normal local timer processing is done.

The code is not perfect yet.  I don't honour changes in the 
profiling multiplier.

Jim Houston - Concurrent Computer Corp.

      reply	other threads:[~2002-12-07 18:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-07 17:13 [PATCH] The alternate Posix timers patch7 Jim Houston
2002-12-07 17:37 ` Mika Penttilä
2002-12-07 18:29   ` Jim Houston [this message]

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=3DF23E0F.6BA703B8@attbi.com \
    --to=jim.houston@attbi.com \
    --cc=high-res-timers-discourse@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mika.penttila@kolumbus.fi \
    /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.