Rafael J. Wysocki 2d6d9fd3a5 ACPI: Introduce acpi_os_ioremap()
Commit ca9b600be38c ("ACPI / PM: Make suspend_nvs_save() use
acpi_os_map_memory()") attempted to prevent the code in osl.c and nvs.c
from using different ioremap() variants by making the latter use
acpi_os_map_memory() for mapping the NVS pages.  However, that also
requires acpi_os_unmap_memory() to be used for unmapping them, which
causes synchronize_rcu() to be executed many times in a row
unnecessarily and introduces substantial delays during resume on some
systems.

Instead of using acpi_os_map_memory() for mapping the NVS pages in nvs.c
introduce acpi_os_ioremap() calling ioremap_cache() and make the code in
both osl.c and nvs.c use it.

Reported-by: Jeff Chua <jeff.chua.linux@gmail.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-20 18:30:17 -08:00
..
2011-01-12 04:48:45 -05:00
2010-10-15 15:53:27 +02:00
2011-01-12 04:27:00 -05:00
2010-10-15 15:53:27 +02:00
2011-01-12 05:03:13 -05:00
2011-01-20 18:30:17 -08:00
2011-01-20 18:30:17 -08:00
2010-09-28 21:38:19 -04:00
2011-01-12 05:06:01 -05:00
2011-01-12 04:27:00 -05:00