[parisc-linux] [PATCH] timer_interrupt and gettimeoffset.
James Bottomley
James.Bottomley at SteelEye.com
Mon Sep 4 11:23:56 MDT 2006
On Mon, 2006-09-04 at 12:57 -0400, John David Anglin wrote:
> There needs to be a check to ensure that the code has enough time
> to set cr16 with the new compare time before the counter passes this
> value. If it misses, the counter will wrap. This probably doesn't
> need to be a full half tick if it's desireable to avoid negative
> offsets.
Exactly!
> In my mind, it's important to ensure that timer interrupts are not
> disabled for long periods. If that's not possible, we could go back
> to 100 Hz. However, I've been using 1000 Hz in an embedded project
> using a small 8-bit micro running at 40 MHz. So, I think 1000 Hz
> should be possible on most PA processors.
Well ... I'm not sure about the rest of the PA world. It's certainly
not possible on ioz (or any other pa8800). According to my benchmarks,
the cache flush IPI takes 47ms to execute. However, the pa8800 has such
a huge cache, it might not take this long on the other PA boxes.
James
More information about the parisc-linux
mailing list