From: Rafael J. Wysocki Date: Fri, 30 Aug 2013 12:19:46 +0000 (+0200) Subject: PM / hibernate / memory hotplug: Rework mutual exclusion X-Git-Tag: v3.12-rc1~35^2~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=942f40155a743f4204308d62405dacaa4bfadb11;p=pandora-kernel.git PM / hibernate / memory hotplug: Rework mutual exclusion Since all of the memory hotplug operations have to be carried out under device_hotplug_lock, they won't need to acquire pm_mutex if device_hotplug_lock is held around hibernation. For this reason, make the hibernation code acquire device_hotplug_lock after freezing user space processes and release it before thawing them. At the same tim drop the lock_system_sleep() and unlock_system_sleep() calls from lock_memory_hotplug() and unlock_memory_hotplug(), respectively. Signed-off-by: Rafael J. Wysocki Acked-by: Toshi Kani --- Reading git-diff-tree failed