Merge branch 'linus' into perfcounters/core
[linux-2.6-block.git] / arch / x86 / kernel / apic / apic.c
index fb504f843e582d2256453d8ba4511eeac31b76e7..e9021a908020665202156a543b430d3c73e34e7e 100644 (file)
@@ -432,6 +432,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());