Re: Is it possible to get 100microsecond timer resolution using the CPU TSC?



avi01 <kurup.avinash@xxxxxxxxx> wrote:

I'm using the 2.6.24.3 kernel and I need to write a module
that runs a function every 100 microseconds (intervals SHOULD occur @
100 microsecond intervals).
tried using the HPET (high precision event timer), but it;s
not present on my main board.
Now I need to know if it's possible to use the x86 Time
stamp counter for the above application, or can I use the ACPI timer?

Both the cycle counter and the ACPI timer are just that: timers. Neither
one does interrupts.

If you need this for a pseudo-real-time task, you need to get a piece of
hardware to issue interrupts for you.

What do you plan to do 10,000 times a second?
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: PII SMP system hangs during boot with ACPI enabled
    ... In message, John Polstra writes: ... >> It's a long shot, but what about setting kern.timecounter.hardware to ... It appears your ACPI timer is bad. ... to interrupts, but I pressume he knows what he's talking about. ...
    (freebsd-current)
  • Is it possible to get 100microsecond timer resolution using the CPU TSC?
    ... I'm using the 2.6.24.3 kernel and I need to write a module ... that runs a function every 100 microseconds (intervals SHOULD occur @ ... tried using the HPET (high precision event timer), ... stamp counter for the above application, or can I use the ACPI timer? ...
    (comp.os.linux.development.system)