patch-2.3.43 linux/drivers/char/vt.c

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

diff -u --recursive --new-file v2.3.42/linux/drivers/char/vt.c linux/drivers/char/vt.c
@@ -804,10 +804,12 @@
 				 * When we actually do the console switch,
 				 * make sure we are atomic with respect to
 				 * other console switches..
+				 *
+				 * Damn! Was it difficult to make this clean?
 				 */
-				start_bh_atomic();
+				disable_bh(CONSOLE_BH);
 				complete_change_console(newvt);
-				end_bh_atomic();
+				enable_bh(CONSOLE_BH);
 			}
 		}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)