Linux Kernel
3.7.1
|
#include <clocksource.h>
Data Fields | |
struct cyclecounter * | cc |
cycle_t | cycle_last |
u64 | nsec |
struct timecounter - layer above a struct cyclecounter which counts nanoseconds Contains the state needed by timecounter_read() to detect cycle counter wrap around. Initialize with timecounter_init(). Also used to convert cycle counts into the corresponding nanosecond counts with timecounter_cyc2time(). Users of this code are responsible for initializing the underlying cycle counter hardware, locking issues and reading the time more often than the cycle counter wraps around. The nanosecond counter will only wrap around after ~585 years.
: the cycle counter used by this instance : most recent cycle counter value seen by timecounter_read() : continuously increasing count
Definition at line 66 of file clocksource.h.
struct cyclecounter* cc |
Definition at line 67 of file clocksource.h.
cycle_t cycle_last |
Definition at line 68 of file clocksource.h.
u64 nsec |
Definition at line 69 of file clocksource.h.