lkml.org 
[lkml]   [2002]   [Dec]   [7]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateSat, 07 Dec 2002 13:29:35 -0500
FromJim Houston <>
SubjectRe: [PATCH] The alternate Posix timers patch7
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/

\
 
 \ /
  Last update: 2005-03-22 11:31    [W:0.256 / U:0.150 seconds]
©2003-2008 Jasper Spaans