]> xenbits.xensource.com Git - xen.git/commitdiff
Revert 24973:50a70b652b43 "x86: Use deep C states for off-lined CPUs"
authorKeir Fraser <keir@xen.org>
Wed, 7 Mar 2012 09:12:23 +0000 (09:12 +0000)
committerKeir Fraser <keir@xen.org>
Wed, 7 Mar 2012 09:12:23 +0000 (09:12 +0000)
applied already

Signed-off-by: Keir Fraser <keir@xen.org>
xen/arch/x86/acpi/cpu_idle.c

index 75593d146a4dba56dcdaba80ecb7e773c1a496ab..a675867f2450a4e15f26e6d802016c9989d4ae43 100644 (file)
@@ -566,7 +566,6 @@ static void acpi_dead_idle(void)
 {
     struct acpi_processor_power *power;
     struct acpi_processor_cx *cx;
-    struct cpuinfo_x86 *c = &current_cpu_data;
 
     if ( (power = processor_powers[smp_processor_id()]) == NULL )
         goto default_halt;
@@ -602,23 +601,6 @@ static void acpi_dead_idle(void)
             mb();
             __mwait(cx->address, 0);
         }
-    } 
-    else if ( c->x86_vendor == X86_VENDOR_AMD && 
-              cx->entry_method == ACPI_CSTATE_EM_SYSIO )
-    {
-        /* Intel prefers not to use SYSIO */
-
-        /* Avoid references to shared data after the cache flush */
-        u32 address = cx->address;
-        u32 pmtmr_ioport_local = pmtmr_ioport;
-
-        wbinvd();
-
-        while ( 1 )
-        {
-            inb(address);
-            inl(pmtmr_ioport_local);
-        }
     }
     else if ( current_cpu_data.x86_vendor == X86_VENDOR_AMD &&
               cx->entry_method == ACPI_CSTATE_EM_SYSIO )