summaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/init_task.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-05-21 04:19:49 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-05-25 23:59:54 +0200
commitd5eefa8280a8bb1e8aef059154bc1d63e1ac3336 (patch)
treee6f4791ab3330aa83a392e5608ee6304b7fed91d /arch/ia64/kernel/init_task.c
parentACPI / PM: Rework device power management to follow ACPI 6 (diff)
downloadlinux-d5eefa8280a8bb1e8aef059154bc1d63e1ac3336.tar.xz
linux-d5eefa8280a8bb1e8aef059154bc1d63e1ac3336.zip
ACPI / PM: Turn power resources on and off in the right order during resume
According to Section 7.2 of ACPI 6.0, power resources should always be enabled and disabled in order given by the "resourceorder" field of the corresponding Power Resource objects: "Power Resource levels are enabled from low values to high values and are disabled from high values to low values." However, this is not what happens during system resume, because in that case the enabling/disabling is carried out in the power resource registration order which may not reflect the ordering required by the platform. For this reason, make the ordering of the global list of all power resources in the system (used by the system resume code) reflect the one given by the "resourceorder" attributes of the Power Resource objects in the ACPI namespace and modify acpi_resume_power_resources() to walk the list in the reverse order when turning off the power resources that had been off before the system was suspended. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/ia64/kernel/init_task.c')
0 files changed, 0 insertions, 0 deletions