From: Rafael J. Wysocki Date: Thu, 4 Mar 2010 00:52:58 +0000 (+0100) Subject: ACPI / EC / PM: Close race between EC and resume from hibernation X-Git-Tag: v2.6.34-rc2~37^2^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6bb13aa1ea3bb26a4c783822347873f085b9000;p=pandora-kernel.git ACPI / EC / PM: Close race between EC and resume from hibernation There is a race between resume from hibernation and the EC driver that may result in restoring the hibernation image in the middle of an EC transaction in progress, which in turn may lead to unpredictable behavior of the platform. To remove that race condition, add a helpers for suspending and resuming EC transactions in a safe way to be executed by the ACPI platform hibernate pre-restore and restore cleanup callbacks. http://bugzilla.kernel.org/show_bug.cgi?id=14668 Signed-off-by: Rafael J. Wysocki Reported-and-tested-by: Maxim Levitsky Signed-off-by: Len Brown --- Reading git-diff-tree failed