[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2/8] ACPI: processor: cache acpi_power_register in cx structure
From: Kevin Tian <kevin.tian@xxxxxxxxx> 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@xxxxxxxxx> Signed-off-by: Tian Kevin <kevin.tian@xxxxxxxxx> Signed-off-by: Tang Liang <liang.tang@xxxxxxxxxx> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> --- drivers/acpi/processor_idle.c | 2 +- include/acpi/processor.h | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 0e8e2de..d88974a 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -418,7 +418,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) diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 12657bb..bd99fb6 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -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 { -- 1.7.7.3 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |