PM / suspend: make sync() on suspend-to-RAM build-time optional
authorLen Brown <len.brown@intel.com>
Fri, 31 Jul 2015 16:46:17 +0000 (12:46 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 31 Jul 2015 21:46:05 +0000 (23:46 +0200)
The Linux kernel suspend path has traditionally invoked sys_sync()
before freezing user threads.

But sys_sync() can be expensive, and some user-space OS's do not want
the kernel to pay the cost of sys_sync() on every suspend -- preferring
invoke sync() from user-space if/when they want it.

So make sys_sync on suspend build-time optional.

The default is unchanged.

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/Kconfig
kernel/power/suspend.c

Simple merge
Simple merge