Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
timex.h File Reference
#include <hwregs/reg_map.h>
#include <hwregs/reg_rdwr.h>
#include <hwregs/timer_defs.h>

Go to the source code of this file.

Macros

#define CLOCK_TICK_RATE   100000000 /* Underlying frequency of the HZ timer */
 
#define TIMER0_FREQ   (CLOCK_TICK_RATE)
 
#define TIMER0_DIV   (TIMER0_FREQ/(HZ))
 
#define GET_JIFFIES_USEC()   ((TIMER0_DIV - REG_RD(timer, regi_timer0, r_tmr0_data)) / 100)
 

Functions

unsigned long get_ns_in_jiffie (void)
 

Macro Definition Documentation

#define CLOCK_TICK_RATE   100000000 /* Underlying frequency of the HZ timer */

Definition at line 13 of file timex.h.

#define GET_JIFFIES_USEC ( )    ((TIMER0_DIV - REG_RD(timer, regi_timer0, r_tmr0_data)) / 100)

Definition at line 20 of file timex.h.

#define TIMER0_DIV   (TIMER0_FREQ/(HZ))

Definition at line 17 of file timex.h.

#define TIMER0_FREQ   (CLOCK_TICK_RATE)

Definition at line 16 of file timex.h.

Function Documentation

unsigned long get_ns_in_jiffie ( void  )

Definition at line 28 of file time.c.