base/arch/i386/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.

Referenced by user_srq().


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.

Referenced by user_srq().

Here is the call graph for this function:

void cleanup_module ( void   ) 

Definition at line 218 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 203 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.

Referenced by user_srq().

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.

Referenced by user_srq().

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().

Referenced by user_srq().

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, KTHREADS, loops, MAXARGS, maxj, nano2count(), params, period, reset_count, rt_assign_irq_to_cpu(), rt_free_timer(), rt_get_time(), rt_kthread_init_cpuid(), 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.

Referenced by init_module().

Here is the call graph for this function:


Variable Documentation

int bit [static]

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

Referenced by rt_timer_tick_ext().

int bus_period [static]

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

Referenced by rt_timer_tick_ext(), and user_srq().

int bus_threshold [static]

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

Referenced by rt_timer_tick_ext(), and user_srq().

int count [static]

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

RTIME expected [static]

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

Referenced by main(), spv(), and user_srq().

int loops [static]

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

Referenced by rt_timer_tick_ext(), and user_srq().

int maxj [static]

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

Referenced by main(), rt_timer_tick_ext(), and user_srq().

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.

Referenced by calibrate(), init_module(), main(), and user_srq().

int period [static]

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

Referenced by __rtai_wd_init(), main(), pthread_make_periodic_np(), rt_spv_RMS(), spv(), and user_srq().

int reset_count [static]

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

Referenced by calibrate(), and user_srq().

RT_TASK rtask [static]

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

Referenced by rt_rwl_unlock(), and user_srq().

int srq [static]

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

Referenced by _rtai_lxrt(), cleanup_module(), handle_lxrt_request(), init_module(), intercept_syscall_prologue(), main(), rt_request_srq(), rtai_lsrq_dispatcher(), rtai_lxrt(), and rtai_syscall_dispatcher().

RTIME t0 [static]

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

Referenced by __ieee754_lgamma_r(), rt_request_timer(), and rt_timer_tick_ext().

struct times_t times [static]

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

Referenced by calibrate(), main(), and user_srq().

int use_parport [static]

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

Referenced by rt_timer_tick_ext(), and user_srq().


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