]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / sleep: Do not save NVS for new machines to accelerate S3
authorLan Tianyu <tianyu.lan@intel.com>
Wed, 23 Jul 2014 06:42:33 +0000 (14:42 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 23 Jul 2014 23:03:18 +0000 (01:03 +0200)
commit80a5e32a512bc85ecd02c6d7ae0b78e98a8e5434
treebac656bc4f885f7ca7702620e57390200a874fd5
parent524b1d071ee32d3981cf3ce0e68cbaa8e4849c62
ACPI / sleep: Do not save NVS for new machines to accelerate S3

NVS region is saved and restored unconditionally for machines without
nvs_nosave quirk during S3. Tested some new machines and the operation
is not necessary. Saving NVS region also affects S2RAM speed. The time of
NVS saving and restoring depends on the size of NVS region and it consumes
7~10ms normally.

This patch is to make machines produced from 2012 to now not saving NVS region
to accelerate S3.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sleep.c