diff options
author | Eric Chanudet <eric.chanudet@eu.citrix.com> | 2012-03-08 17:04:32 +0100 |
---|---|---|
committer | Eric Chanudet <eric.chanudet@eu.citrix.com> | 2012-03-08 17:04:32 +0100 |
commit | 2ab5a5dd986b46bea1094cc1e923d4dab88056d9 (patch) | |
tree | 8e6c28be87f16e4775967caa845959b5a750686f /xen/include/xen/cpuidle.h | |
parent | cae10a689a5ee104a24dc01131e1d71d4060cc70 (diff) | |
download | xen-2ab5a5dd986b46bea1094cc1e923d4dab88056d9.tar.gz xen-2ab5a5dd986b46bea1094cc1e923d4dab88056d9.tar.bz2 xen-2ab5a5dd986b46bea1094cc1e923d4dab88056d9.zip |
XENPF_set_processor_pminfo XEN_PM_CX overflows states array
Calling XENPF_set_processor_pminfo with XEN_PM_CX could cause states
array in "struct acpi_processor_power" to exceed its limit.
The array used to be reset (by function cpuidle_init_cpu()) for each
hypercall. The patch puts it back that way and adds an assertion to
make it clear in case that happens again.
Signed-off-by: Eric Chanudet <eric.chanudet@eu.citrix.com>
- convert assertion to printk() & bail
- eliminate struct acpi_processor_cx's valid member (not read anymore)
- further adjustments to one-time-only vs each-time operations in
cpuidle_init_cpu()
- don't use ACPI_STATE_Cn as array index anymore
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen/cpuidle.h')
-rw-r--r-- | xen/include/xen/cpuidle.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/xen/include/xen/cpuidle.h b/xen/include/xen/cpuidle.h index 5285063696..4442a84ebe 100644 --- a/xen/include/xen/cpuidle.h +++ b/xen/include/xen/cpuidle.h @@ -40,7 +40,6 @@ struct acpi_processor_cx { u8 idx; - u8 valid; u8 type; u32 address; u8 entry_method; /* ACPI_CSTATE_EM_xxx */ |