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 = 1; //Enable the APIC for P6 only |
unsigned char use_apic = 0; //Enable the APIC for P6 only |
|
//Max single delta_clk_per_msec increment = clk_per_msec / MAX_DIV_INK; |
#define MAX_DIV_INK 30000 |
381,7 → 381,7 |
return maxlvt; |
} |
|
/* Clear local APIC, grom Linux kernel */ |
/* Clear local APIC, from Linux kernel */ |
void clear_local_APIC(void) |
{ |
int maxlvt; |
492,7 → 492,7 |
|
} |
|
#define LOCAL_TIMER_VECTOR 0x66 |
#define LOCAL_TIMER_VECTOR 0x39 |
|
/* Set APIC Timer... from Linux kernel */ |
void setup_APIC_timer() |
647,8 → 647,6 |
|
disable_APIC_timer(); |
|
clear_local_APIC(); |
|
rdmsr(APIC_BASE_MSR, msr_low_orig, tmp); |
wrmsr(APIC_BASE_MSR, msr_low_orig&~(1<<11), 0); |
|