base/arch/x86_64/calibration/calibrate-module.c File Reference

Include dependency graph for calibrate-module.c:

Go to the source code of this file.

Defines

#define COUNT   0xFFFFFFFFU

Functions

 MODULE_LICENSE ("GPL")
static void calibrate (void)
static void just_ret (void)
static void spv (long loops)
static int rt_timer_tick_ext (int irq, unsigned long data)
static long long user_srq (unsigned long whatever)
int init_module (void)
void cleanup_module (void)

Variables

static struct params_t params = { 0, SETUP_TIME_8254, LATENCY_8254, 0, LATENCY_APIC, SETUP_TIME_APIC, CALIBRATED_APIC_FREQ, 0, CALIBRATED_CPU_FREQ, CLOCK_TICK_RATE, LATCH }
static int reset_count
static int count
static struct times_t times
static RT_TASK rtask
static int period
static RTIME expected
static RTIME t0
static int bus_period
static int bus_threshold
static int use_parport
static int loops
static int maxj
static int bit
static int srq


Define Documentation

#define COUNT   0xFFFFFFFFU

Definition at line 30 of file calibrate-module.c.


Function Documentation

static void calibrate ( void   )  [static]

Definition at line 37 of file calibrate-module.c.

References times_t::apic_time, count, times_t::cpu_time, times_t::intrs, params_t::mp, params, reset_count, rt_pend_linux_irq(), rtf_put(), TIMER_8254_IRQ, and times.

Here is the call graph for this function:

void cleanup_module ( void   ) 

Definition at line 211 of file calibrate-module.c.

References rt_free_srq(), rtf_destroy(), and srq.

Here is the call graph for this function:

int init_module ( void   ) 

Definition at line 198 of file calibrate-module.c.

References CALSRQ, params_t::cpu_freq, FIFOBUFSIZE, params_t::freq_apic, params_t::mp, params, printk(), rt_request_srq(), RTAI_CPU_FREQ, RTAI_FREQ_APIC, rtf_create(), srq, and user_srq().

Here is the call graph for this function:

static void just_ret ( void   )  [static]

Definition at line 68 of file calibrate-module.c.

MODULE_LICENSE ( "GPL"   ) 

static int rt_timer_tick_ext ( int  irq,
unsigned long  data 
) [static]

Definition at line 92 of file calibrate-module.c.

References bit, bus_period, bus_threshold, CPU_FREQ, imuldiv(), INILOOPS, loops, maxj, msg, PARPORT, rdtsc, rt_pend_linux_irq(), rt_set_timer_delay, rtf_put(), t0, TIMER_8254_IRQ, and use_parport.

Here is the call graph for this function:

static void spv ( long  loops  )  [static]

Definition at line 77 of file calibrate-module.c.

References count2nano(), expected, period, rt_get_time(), rt_task_suspend(), rt_task_wait_period(), and rtf_put().

Here is the call graph for this function:

static long long user_srq ( unsigned long  whatever  )  [static]

Definition at line 127 of file calibrate-module.c.

References args, BUS_CHECK, bus_period, bus_threshold, CAL_8254, calibrate(), COUNT, count, CPU_FREQ, END_BUS_CHECK, END_FREQ_CAL, END_KLATENCY, expected, FREQ_8254, FREQ_CAL, GET_PARAMS, imuldiv(), times_t::intrs, just_ret(), KLATENCY, loops, MAXARGS, maxj, nano2count(), params, period, reset_count, rt_assign_irq_to_cpu(), rt_free_timer(), rt_get_time(), rt_request_timer(), rt_reset_irq_to_sym_mode(), rt_set_oneshot_mode(), rt_task_delete, rt_task_init_cpuid(), rt_task_make_periodic(), rt_timer_tick_ext(), rtask, rtf_put(), spv(), STACKSIZE, start_rt_timer(), stop_rt_timer(), TIMER_8254_IRQ, times, and use_parport.

Here is the call graph for this function:


Variable Documentation

int bit [static]

Definition at line 90 of file calibrate-module.c.

int bus_period [static]

Definition at line 90 of file calibrate-module.c.

int bus_threshold [static]

Definition at line 90 of file calibrate-module.c.

int count [static]

Definition at line 34 of file calibrate-module.c.

RTIME expected [static]

Definition at line 75 of file calibrate-module.c.

int loops [static]

Definition at line 90 of file calibrate-module.c.

int maxj [static]

Definition at line 90 of file calibrate-module.c.

struct params_t params = { 0, SETUP_TIME_8254, LATENCY_8254, 0, LATENCY_APIC, SETUP_TIME_APIC, CALIBRATED_APIC_FREQ, 0, CALIBRATED_CPU_FREQ, CLOCK_TICK_RATE, LATCH } [static]

Definition at line 32 of file calibrate-module.c.

int period [static]

Definition at line 74 of file calibrate-module.c.

int reset_count [static]

Definition at line 34 of file calibrate-module.c.

RT_TASK rtask [static]

Definition at line 73 of file calibrate-module.c.

int srq [static]

Definition at line 196 of file calibrate-module.c.

RTIME t0 [static]

Definition at line 89 of file calibrate-module.c.

struct times_t times [static]

Definition at line 35 of file calibrate-module.c.

int use_parport [static]

Definition at line 90 of file calibrate-module.c.


Generated on Tue Feb 2 17:46:12 2010 for RTAI API by  doxygen 1.4.7