mirror of https://gitee.com/openkylin/linux.git
x86: preset apic clockevents multiplicator
The check for an unitialized clock event device triggers, when the local apic timer is registered as a dummy clock event device for broadcasting. Preset the multiplicator to avoid a false positive. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
c2b84b30b8
commit
9d09951da9
|
@ -377,8 +377,10 @@ void __init setup_boot_APIC_clock(void)
|
||||||
*/
|
*/
|
||||||
if (local_apic_timer_disabled) {
|
if (local_apic_timer_disabled) {
|
||||||
/* No broadcast on UP ! */
|
/* No broadcast on UP ! */
|
||||||
if (num_possible_cpus() > 1)
|
if (num_possible_cpus() > 1) {
|
||||||
|
lapic_clockevent.mult = 1;
|
||||||
setup_APIC_timer();
|
setup_APIC_timer();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -375,8 +375,10 @@ void __init setup_boot_APIC_clock(void)
|
||||||
if (disable_apic_timer) {
|
if (disable_apic_timer) {
|
||||||
printk(KERN_INFO "Disabling APIC timer\n");
|
printk(KERN_INFO "Disabling APIC timer\n");
|
||||||
/* No broadcast on UP ! */
|
/* No broadcast on UP ! */
|
||||||
if (num_possible_cpus() > 1)
|
if (num_possible_cpus() > 1) {
|
||||||
|
lapic_clockevent.mult = 1;
|
||||||
setup_APIC_timer();
|
setup_APIC_timer();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue