]> Pileus Git - ~andy/linux/blobdiff - arch/x86/kernel/apic/apic.c
Merge branch 'linus' into x86/apic
[~andy/linux] / arch / x86 / kernel / apic / apic.c
index 4b48ff9163caf28709b2992148454b8369df925c..83e47febcc893e29ec387377cc2db66c4ac4865b 100644 (file)
@@ -472,6 +472,12 @@ static void __cpuinit setup_APIC_timer(void)
 {
        struct clock_event_device *levt = &__get_cpu_var(lapic_events);
 
+       if (cpu_has(&current_cpu_data, X86_FEATURE_ARAT)) {
+               lapic_clockevent.features &= ~CLOCK_EVT_FEAT_C3STOP;
+               /* Make LAPIC timer preferrable over percpu HPET */
+               lapic_clockevent.rating = 150;
+       }
+
        memcpy(levt, &lapic_clockevent, sizeof(*levt));
        levt->cpumask = cpumask_of(smp_processor_id());