-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 62227 b: refs/heads/master c: 813f907 h: refs/heads/master i: 62225: 9dc92f7 62223: 183bed1 v: v3
- Loading branch information
Christian Krafft
authored and
Arnd Bergmann
committed
Jul 20, 2007
1 parent
186b1ac
commit 5e46089
Showing
62 changed files
with
1,601 additions
and
1,384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 2008220879af095d00ca27eb168a55c8595fbc0b | ||
refs/heads/master: 813f90728e7d74e9b753e6ef6c6915cd2a047adb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Time Interpolators | ||
------------------ | ||
|
||
Time interpolators are a base of time calculation between timer ticks and | ||
allow an accurate determination of time down to the accuracy of the time | ||
source in nanoseconds. | ||
|
||
The architecture specific code typically provides gettimeofday and | ||
settimeofday under Linux. The time interpolator provides both if an arch | ||
defines CONFIG_TIME_INTERPOLATION. The arch still must set up timer tick | ||
operations and call the necessary functions to advance the clock. | ||
|
||
With the time interpolator a standardized interface exists for time | ||
interpolation between ticks. The provided logic is highly scalable | ||
and has been tested in SMP situations of up to 512 CPUs. | ||
|
||
If CONFIG_TIME_INTERPOLATION is defined then the architecture specific code | ||
(or the device drivers - like HPET) may register time interpolators. | ||
These are typically defined in the following way: | ||
|
||
static struct time_interpolator my_interpolator { | ||
.frequency = MY_FREQUENCY, | ||
.source = TIME_SOURCE_MMIO32, | ||
.shift = 8, /* scaling for higher accuracy */ | ||
.drift = -1, /* Unknown drift */ | ||
.jitter = 0 /* time source is stable */ | ||
}; | ||
|
||
void time_init(void) | ||
{ | ||
.... | ||
/* Initialization of the timer *. | ||
my_interpolator.address = &my_timer; | ||
register_time_interpolator(&my_interpolator); | ||
.... | ||
} | ||
|
||
For more details see include/linux/timex.h and kernel/timer.c. | ||
|
||
Christoph Lameter <christoph@lameter.com>, October 31, 2004 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.