summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/acpi.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2011-02-09 01:38:38 +0300
committerRafael J. Wysocki <rjw@sisk.pl>2011-02-24 21:58:42 +0300
commitbb45e394e21eb2abc710ad43d98ebac1069bf355 (patch)
tree13e250fb395b358bb8c9471880d3d8fc121d6c2b /arch/x86/include/asm/acpi.h
parent13606a2de1996f8d83a9ce296f74022bdbadf712 (diff)
downloadlinux-bb45e394e21eb2abc710ad43d98ebac1069bf355.tar.xz
ACPI / PM: Use existing ACPI iomaps for NVS save/restore (v2)
Modify the NVS save/restore code to use acpi_os_get_iomem() and acpi_os_unmap_memory() to acquire and release references to ACPI iomaps, respectively. If there's no ACPI iomap corresponding to the given NVS page, acpi_os_ioremap() is used to map that page and iounmap() is used to unmap it during resume. [If the page is not present in the ACPI iomaps already, it doesn't make sense to add its mapping to the list of ACPI iomaps, because it's going to be thrown away during the subsequent resume anyway.] Testing on my HP nx6325 shows that approx. 90% of the NVS pages have already been mapped by ACPI before suspend and are present in the ACPI iomaps, so this change appears to be the right thing to do in general. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/x86/include/asm/acpi.h')
0 files changed, 0 insertions, 0 deletions