patch-pre2.0.5 linux/drivers/char/console.c

Next file: linux/drivers/char/tty_io.c
Previous file: linux/drivers/char/baycom.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.4/linux/drivers/char/console.c linux/drivers/char/console.c
@@ -2116,11 +2116,6 @@
 {
 	int currcons;
 
-#ifdef CONFIG_APM
-	if (apm_display_blank())
-		return;
-#endif
-
 	if (console_blanked)
 		return;
 
@@ -2146,6 +2141,10 @@
 	hide_cursor();
 	console_blanked = fg_console + 1;
 
+#ifdef CONFIG_APM
+	if (apm_display_blank())
+		return;
+#endif
 	if(!nopowersave)
 	    vesa_blank();
 }
@@ -2156,11 +2155,6 @@
 	int resetorg;
 	long offset;
 
-#ifdef CONFIG_APM
-	if (apm_display_unblank())
-		return;
-#endif
-
 	if (!console_blanked)
 		return;
 	if (!vc_cons_allocated(fg_console)) {
@@ -2193,6 +2187,10 @@
 		__set_origin(blank__origin);
 
 	vesa_unblank();
+#ifdef CONFIG_APM
+	if (apm_display_unblank())
+		return;
+#endif
 }
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this