From: Johannes Berg Date: Fri, 11 Jan 2008 00:22:23 +0000 (+0100) Subject: Suspend: Invoke suspend notifications after console switch X-Git-Tag: v2.6.25-rc1~1073^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af258f516b3e4e214121f5d6d53cab32ce0d8010;p=pandora-kernel.git Suspend: Invoke suspend notifications after console switch In order to fix APM emulation it is necessary to enable apm-emulation notifications for suspends triggered in various ways via the suspend notifiers. However, this will cause the systems using APM emulation to lock up between X being needed to switch away from the VT and X already waiting for resume in the APM ioctl. This patch moves the console switch (if enabled) before the suspend notification (and after the resume notification) to avoid this issue. Signed-off-by: Johannes Berg Signed-off-by: Rafael J. Wysocki Signed-off-by: Len Brown --- Reading git-diff-tree failed