Re: do_gettimeofday vs. rdtsc in the scheduler

From: Mikael Pettersson (
Date: Thu Sep 19 2002 - 06:20:41 EST

Andi Kleen writes:
> On Tue, Sep 17, 2002 at 04:46:49PM -0700, David S. Miller wrote:
> > From: Andi Kleen <>
> > Date: Wed, 18 Sep 2002 01:52:09 +0200
> >
> > On Tue, Sep 17, 2002 at 04:32:46PM -0700, David S. Miller wrote:
> > > I know full well it isn't currently :-)
> >
> > Sorry, it's wrong. The x86 architecture has several such registers
> >
> > Not in the processor, and not architectually specified.
> >
> > All of the things you list are in the scope of things outside
> > the cpu.
> The local APIC timer is specified in the Intel Manual volume 3 for example.
> It's an optional feature (CPUID), but pretty much everyone has it.

Except that like everything else related to the local APIC, you're at
the mercy of the competence (or lack thereof) of the BIOS implementors.
- There are plenty of laptops whose CPUs have local APICs but whose
  BIOSen go berserk if you enable it. There are also plenty of laptops
  that don't have one, since Intel removed it from many Mobile P6 CPUs.
- There are even some desktop boards with BIOS problems, including Intel's
  AL440LX on which Linux must stay away from the local APIC timer.

To assume the local APIC works on 686-class UP boxes is not realistic, alas.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Sep 23 2002 - 22:00:26 EST