Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
cyclecounter Struct Reference

#include <clocksource.h>

Data Fields

cycle_t(* read )(const struct cyclecounter *cc)
cycle_t mask
u32 mult
u32 shift

Detailed Description

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.

Field Documentation

cycle_t mask

Definition at line 45 of file clocksource.h.

u32 mult

Definition at line 46 of file clocksource.h.

Definition at line 44 of file clocksource.h.

u32 shift

Definition at line 47 of file clocksource.h.

The documentation for this struct was generated from the following file: