]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
ACPI: Backport to support ACPI throttling s/w coordination
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 2 Mar 2009 10:54:44 +0000 (10:54 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 2 Mar 2009 10:54:44 +0000 (10:54 +0000)
commit 3abbd337c60591305cbfeb984ff2922c175be37f
Author: Zhao Yakui <yakui.zhao@intel.com>
Date:   Mon Jan 28 13:53:21 2008 +0800

    ACPI: Set _PSD ACPI_PDC_SMP_T_SWCOORD

    The ACPI_PDC_SMP_T_SWCOORD bit is set by and OS that is capable of
    native ACPI throttling software coordination for mutli-processors
    using the _TSD information.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Wei Gang <gang.wei@intel.com>
arch/i386/kernel/acpi/processor.c

index d2f983ce22eaa33adf30a33ba99a9d78a79a4023..5992512f260497957512349061cf95782360ffd6 100644 (file)
@@ -46,6 +46,12 @@ static void init_intel_pdc(struct acpi_processor *pr, struct cpuinfo_x86 *c)
        buf[1] = 1;
        buf[2] = ACPI_PDC_C_CAPABILITY_SMP;
 
+       /*
+        * The default of PDC_SMP_T_SWCOORD bit is set for intel x86 cpu so
+        * that OSPM is capable of native ACPI throttling software
+        * coordination using BIOS supplied _TSD info.
+        */
+       buf[2] |= ACPI_PDC_SMP_T_SWCOORD;
        if (cpu_has(c, X86_FEATURE_EST))
                buf[2] |= ACPI_PDC_EST_CAPABILITY_SWSMP;