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

#include <clocksource.h>

Data Fields

struct cyclecountercc
 
cycle_t cycle_last
 
u64 nsec
 

Detailed Description

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.

Field Documentation

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.


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