Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | timecompare |
Functions | |
ktime_t | timecompare_transform (struct timecompare *sync, u64 source_tstamp) |
int | timecompare_offset (struct timecompare *sync, s64 *offset, u64 *source_tstamp) |
void | __timecompare_update (struct timecompare *sync, u64 source_tstamp) |
void __timecompare_update | ( | struct timecompare * | sync, |
u64 | source_tstamp | ||
) |
Definition at line 138 of file timecompare.c.
int timecompare_offset | ( | struct timecompare * | sync, |
s64 * | offset, | ||
u64 * | source_tstamp | ||
) |
timecompare_offset - measure current (target time - source time) offset : context for time sync : average offset during sample period returned here : average source time during sample period returned here
Returns number of samples used. Might be zero (= no result) in the unlikely case that target time was monotonically decreasing for all samples (= broken).
Definition at line 47 of file timecompare.c.
ktime_t timecompare_transform | ( | struct timecompare * | sync, |
u64 | source_tstamp | ||
) |
timecompare_transform - transform source time stamp into target time base : context for time sync : the result of timecounter_read() or timecounter_cyc2time()
Definition at line 34 of file timecompare.c.