Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 302 → Rev 301

/shark/trunk/oslib/kl/advtimer.c
37,7 → 37,7
 
unsigned char use_tsc = 1; //Enable the TSC counter mode
unsigned char use_cmos = 0; //Enable the RTC correction
unsigned char use_apic = 0; //Enable the APIC for P6 only
unsigned char use_apic = 1; //Enable the APIC
 
//Max single delta_clk_per_msec increment = clk_per_msec / MAX_DIV_INK;
#define MAX_DIV_INK 30000
380,7 → 380,6
return maxlvt;
}
 
/* Clear local APIC, grom Linux kernel */
void clear_local_APIC(void)
{
int maxlvt;
447,8 → 446,9
#define SPURIOUS_APIC_VECTOR 0xFF
 
/*
* Setup the local APIC, minimal code to run P6 APIC
* An initial setup of the virtual wire mode.
*/
 
void setup_local_APIC (void)
{
unsigned long value;
492,8 → 492,8
}
 
#define LOCAL_TIMER_VECTOR 0x66
 
/* Set APIC Timer... from Linux kernel */ void setup_APIC_LVTT(unsigned int clocks)
void setup_APIC_LVTT(unsigned int clocks)
{
unsigned int lvtt1_value, tmp_value;
619,7 → 619,6
 
void ll_restore_adv()
{
/* Restore CMOS setting */
if (use_cmos) {
cli();
631,7 → 630,6
sti();
}
 
/* Disable APIC */
if (use_apic) {
unsigned int msr_low_orig, tmp;