From: Rafael J. Wysocki Date: Sun, 29 Apr 2012 20:52:34 +0000 (+0200) Subject: PM / Sleep: Use wait queue to signal "no wakeup events in progress" X-Git-Tag: v3.5-rc1~116^2~3^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60af1066913162c5dd13fad3b872a67b1eb7da0f;p=pandora-kernel.git PM / Sleep: Use wait queue to signal "no wakeup events in progress" The current wakeup source deactivation code doesn't do anything when the counter of wakeup events in progress goes down to zero, which requires pm_get_wakeup_count() to poll that counter periodically. Although this reduces the average time it takes to deactivate a wakeup source, it also may lead to a substantial amount of unnecessary polling if there are extended periods of wakeup activity. Thus it seems reasonable to use a wait queue for signaling the "no wakeup events in progress" condition and remove the polling. Signed-off-by: Rafael J. Wysocki Acked-by: mark gross Acked-by: Greg Kroah-Hartman --- Reading git-diff-tree failed