xen: Re-upload processor PM data to hypervisor after S3 resume (v2)
authorBen Guthro <benjamin.guthro@citrix.com>
Wed, 17 Apr 2013 13:18:49 +0000 (09:18 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 17 Apr 2013 14:43:56 +0000 (10:43 -0400)
commit3fac10145b766a2244422788f62dc35978613fd8
treee5d3ced010bb1936599c7ea883996ba46ce0c6b2
parentb12abaa192c4340de50ddd86853b3583c255c449
xen: Re-upload processor PM data to hypervisor after S3 resume (v2)

Upon resume, it was found that ACPI C-states were missing from non-boot CPUs.
This change registers a syscore_ops handler for this case, and re-uploads the
PM information to the hypervisor to properly reset the C-state on these
processors.

v2:
v1 did not go through the check_acpi_ids() code-path, and missed some cases when
xen was running with the dom0_max_vcpus= command line parameter.

Signed-Off-By: Ben Guthro <benjamin.guthro@citrix.com>
[v3: Ate some tabs, s/printk/pr_info/]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xen-acpi-processor.c