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

#include <linux/sched.h>
#include <linux/module.h>
#include <linux/irq.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <rtai_sched.h>
#include <rtai_fifos.h>
#include "calibrate.h"

Include dependency graph for calibrate-module.c:

Include dependency graph

Go to the source code of this file.

Defines

#define COUNT   0xFFFFFFFFU

Functions

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

Variables

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 }
int reset_count
int count
times_t times
RT_TASK rtask
int period
RTIME expected
RTIME t0
int bus_period
int bus_threshold
int use_parport
int loops
int maxj
int bit
int srq


Define Documentation

#define COUNT   0xFFFFFFFFU
 

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

Referenced by user_srq().


Function Documentation

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(), RTIME, TIMER_8254_IRQ, and times.

Referenced by user_srq().

Here is the call graph for this function:

void cleanup_module void   ) 
 

Definition at line 212 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 197 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, rtf_create(), srq, and user_srq().

Here is the call graph for this function:

void just_ret void   )  [static]
 

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

Referenced by user_srq().

MODULE_LICENSE "GPL"   ) 
 

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, PARPORT, rdtsc, rt_pend_linux_irq(), rt_set_timer_delay, rtf_put(), RTIME, t0, TIMER_8254_IRQ, and use_parport.

Referenced by user_srq().

Here is the call graph for this function:

void spv long  loops  )  [static]
 

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

References count2nano(), expected, loops, 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:

long long user_srq unsigned long  whatever  )  [static]
 

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

References 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.

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 spv(), and user_srq().

int loops [static]
 

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

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

int maxj [static]
 

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

Referenced by 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(), and user_srq().

int period [static]
 

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

Referenced by 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 user_srq().

int srq [static]
 

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

Referenced by cleanup_module(), and init_module().

RTIME t0 [static]
 

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

Referenced by rt_timer_tick_ext().

struct times_t times [static]
 

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

Referenced by calibrate(), 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 Thu Nov 20 11:50:12 2008 for RTAI API by doxygen 1.3.8