Re: [PATCH] The alternate Posix timers patch7

From: Jim Houston (jim.houston@attbi.com)
Date: Sat Dec 07 2002 - 13:29:35 EST


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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 07 2002 - 22:00:30 EST