Timekeeping problem: time runs too fast

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

 



Hello all,
I'm working on the porting of uClinux 2.6.19 for a new architecture.
The system is booting without problems, but I have a problem
concerning timekeeping.
Indeed, the date command shows that time runs too fast
(5 sec in reality for around 10 minutes in Linux...).

So I have read documentation about timekeeping, the important things
seems to be the following:

 - jiffies -> number of timer interrupts (ticks) since the system
startup.

 - xtime.tv_sec -> number of seconds elapsed since Epoch (1970, jan 1
00:00:00)

 - xtime.tv_nsec -> number of nanoseconds elapsed during the current second.

These variables are updated at each timer interrupts, notably in
update_wall_time() where xtime fields are modified in an algorithm
involving the kernel clock (clocksource).
Does this timekeeping mechanism perfectly functionnal for this version
of the kernel?

I have an other question concerning the macro CLOCK_TICK_RATE
(include/asm-'arch-name'/timex.h):
this macro seems to be architecture dependant. It's generally 1193180.

What is this macro used for?
What value should I give to it?

Thanks in advance for your help.
Regards.




--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux