Linux Kernel
3.7.1
|
#include <clocksource.h>
Data Fields | |
cycle_t(* | read )(const struct cyclecounter *cc) |
cycle_t | mask |
u32 | mult |
u32 | shift |
struct cyclecounter - hardware abstraction for a free running counter Provides completely state-free accessors to the underlying hardware. Depending on which hardware it reads, the cycle counter may wrap around quickly. Locking rules (if necessary) have to be defined by the implementor and user of specific instances of this API.
: returns the current cycle value : bitmask for two's complement subtraction of non 64 bit counters, see CLOCKSOURCE_MASK() helper macro : cycle to nanosecond multiplier : cycle to nanosecond divisor (power of two)
Definition at line 43 of file clocksource.h.
cycle_t mask |
Definition at line 45 of file clocksource.h.
u32 mult |
Definition at line 46 of file clocksource.h.
cycle_t(* read)(const struct cyclecounter *cc) |
Definition at line 44 of file clocksource.h.
u32 shift |
Definition at line 47 of file clocksource.h.