Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions | Variables
tsc.h File Reference
#include <asm/processor.h>

Go to the source code of this file.


#define NS_SCALE   10 /* 2^10, carefully chosen */
#define US_SCALE   32 /* 2^32, arbitralrily chosen */


typedef unsigned long long cycles_t


void disable_TSC (void)
void tsc_init (void)
void mark_tsc_unstable (char *reason)
int unsynchronized_tsc (void)
int check_tsc_unstable (void)
unsigned long native_calibrate_tsc (void)
void check_tsc_sync_source (int cpu)
void check_tsc_sync_target (void)
int notsc_setup (char *)
void tsc_save_sched_clock_state (void)
void tsc_restore_sched_clock_state (void)


unsigned int cpu_khz
unsigned int tsc_khz
int tsc_clocksource_reliable

Macro Definition Documentation

#define NS_SCALE   10 /* 2^10, carefully chosen */

Definition at line 9 of file tsc.h.

#define US_SCALE   32 /* 2^32, arbitralrily chosen */

Definition at line 10 of file tsc.h.

Typedef Documentation

typedef unsigned long long cycles_t

Definition at line 15 of file tsc.h.

Function Documentation

void check_tsc_sync_source ( int  cpu)

Definition at line 124 of file tsc_sync.c.

void check_tsc_sync_target ( void  )

Definition at line 190 of file tsc_sync.c.

int check_tsc_unstable ( void  )
void disable_TSC ( void  )

Definition at line 168 of file process.c.

void mark_tsc_unstable ( char reason)

Definition at line 780 of file tsc.c.

unsigned long native_calibrate_tsc ( void  )

native_calibrate_tsc - calibrate the tsc on boot

Definition at line 403 of file tsc.c.

int notsc_setup ( char )

Definition at line 98 of file tsc.c.

void tsc_init ( void  )

Definition at line 953 of file tsc.c.

void tsc_restore_sched_clock_state ( void  )

Definition at line 647 of file tsc.c.

void tsc_save_sched_clock_state ( void  )

Definition at line 631 of file tsc.c.

int unsynchronized_tsc ( void  )

Definition at line 819 of file tsc.c.

Variable Documentation

unsigned int cpu_khz

Definition at line 48 of file malta-time.c.

int tsc_clocksource_reliable

Definition at line 40 of file tsc.c.

unsigned int tsc_khz

Definition at line 27 of file tsc.c.