]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ACPI: processor: cache acpi_power_register in cx structure
authorKevin Tian <kevin.tian@intel.com>
Wed, 19 Oct 2011 08:51:51 +0000 (16:51 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 13 Dec 2011 17:03:07 +0000 (12:03 -0500)
This patch save acpi_power_register in cx structure because we need
pass this to the Xen ACPI processor driver.

Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Tian Kevin <kevin.tian@intel.com>
Signed-off-by: Tang Liang <liang.tang@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/acpi/processor_idle.c
include/acpi/processor.h

index bf4e6719968c10327a78c749b4725f66ec9c179f..f5250b2092afc23c7f7ec9062b56985af47d4f0a 100644 (file)
@@ -427,7 +427,7 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr)
                if (reg->space_id != ACPI_ADR_SPACE_SYSTEM_IO &&
                    (reg->space_id != ACPI_ADR_SPACE_FIXED_HARDWARE))
                        continue;
-
+               memcpy(&(cx.reg), reg, sizeof(*reg));
                /* There should be an easy way to extract an integer... */
                obj = &(element->package.elements[1]);
                if (obj->type != ACPI_TYPE_INTEGER)
index e79831a328fc3fc112d512350a7e872cf0d53bb6..94b10a14aafbe412566d574ee6558790bcb726d6 100644 (file)
@@ -65,6 +65,7 @@ struct acpi_processor_cx {
        u64 time;
        u8 bm_sts_skip;
        char desc[ACPI_CX_DESC_LEN];
+       struct acpi_power_register reg;
 };
 
 struct acpi_processor_power {