/* Normally during a suspend, we allocate a new console and switch to it. When we resume, we switch back to the original console. This switch can be slow, so on systems where the framebuffer can handle restoration of video registers anyways, there's little point in doing the console switch. This function allows you to disable it by passing it '0'.  */
void pm_set_vt_switch(int do_switch)
/* Normally during a suspend, we allocate a new console and switch to it. When we resume, we switch back to the original console. This switch can be slow, so on systems where the framebuffer can handle restoration of video registers anyways, there's little point in doing the console switch. This function allows you to disable it by passing it '0'.  */
void pm_set_vt_switch(int do_switch)
{
	acquire_console_sem();
	disable_vt_switch = !do_switch;
	release_console_sem();
}