int apic_calibrate_pmtmr __initdata;
int disable_apic_timer __initdata;
-/* just used to communicate with shared i386 code: */
-int enable_local_apic = 1;
-
/*
* cpu_mask that denotes the CPUs that needs timer interrupt coming in as
printk(KERN_WARNING "APIC Verbosity level %s not recognised"
" use apic=verbose or apic=debug", str);
- return 0;
+ return 1;
}
__setup("apic=", apic_set_verbosity);
}
if (!cpu_has_apic) {
disable_apic = 1;
- enable_local_apic = -1;
printk(KERN_INFO "Apic disabled by BIOS\n");
return -1;
}
static __init int setup_disableapic(char *str)
{
- enable_local_apic = -1;
disable_apic = 1;
- return 0;
+ return 1;
}
static __init int setup_nolapic(char *str)
{
- enable_local_apic = -1;
disable_apic = 1;
- return 0;
+ return 1;
}
static __init int setup_noapictimer(char *str)
{
if (str[0] != ' ' && str[0] != 0)
- return -1;
+ return 0;
disable_apic_timer = 1;
- return 0;
+ return 1;
}
static __init int setup_apicmaintimer(char *str)
{
apic_runs_main_timer = 1;
nohpet = 1;
- return 0;
+ return 1;
}
__setup("apicmaintimer", setup_apicmaintimer);
static __init int setup_noapicmaintimer(char *str)
{
apic_runs_main_timer = -1;
- return 0;
+ return 1;
}
__setup("noapicmaintimer", setup_noapicmaintimer);