[parisc-linux] gettimeofday() issue on D270
John David Anglin
dave at hiauly1.hia.nrc.ca
Sun Aug 27 15:07:41 MDT 2006
> So far I was able to workaround the problem by making gettimeoffset() return 0 instead of the actual result. This is in arch/parisc/kernel/time.c.
> It looks like gettimeoffset() returns a very large value when there is load on the system.
> This value seems to be adding 27 secs to the actual time one every 5 to 10 seconds. I poll every second.
Is this a 64 or 32 bit kernel? The size of long changes. There may
be a subtle issue with cr16. It's reads as a 64 bit register. However,
on writes, only the least significant matter. I could see missing
a timer interrupt if we get close too close to the compare value.
The 27 seconds might be the time for the counter to wrap.
Dave
--
J. David Anglin dave.anglin at nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
More information about the parisc-linux
mailing list