Re: RT patch and arch/i386/kernel/time.c question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Steven Rostedt ([email protected]) wrote:
> 
> On Tue, 7 Mar 2006, Serge Noiraud wrote:
> 
> > hi,
> >
> > 	I'm trying to port the LTTng patch over the rt20 and I got the following problem :
> > The LTTng patch try to modify the arch/i386/kernel/time.c file in which the
> > timer_interrupt function doesn't exist anymore.
> >
> > In which file / function could I try to patch the equivalent function ?
> >
> 
> The -rt patch uses the lastest stuff from Thomas Gleixner, John Stultz and
> of course Ingo Molnar.  The functions you are interested in, are in
> kernel/time/ directory.  Take a look at clockevents.c and perhaps
> handle_tick().  I'm not sure what LTTng is doing there, but this will give
> you a direction in which way to look.
> 
> -- Steve
> 

LTTng is updating its logical clock there. Note that this clock is only used on
architectures missing a synchronised CPU timestamp counter (NUMA and old i586).

If you have a fairly standard architecture (i686 with TSC available), this
combination of jiffies counter and logical clock is not used.

Look for where the xtime_lock seqlock is taken in the -rt patch : that's where
the logical clock should be updated.

Mathieu

OpenPGP public key:              http://krystal.dyndns.org:8080/key/compudj.gpg
Key fingerprint:     8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux