[linux-pm] [PATCH 2/2] Fix console handling during suspend/resume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, 14 Jun 2006, Pavel Machek wrote:
> 
> Okay, but we probably do not want to be in SYSTEM_BOOTING state,
> right?
> 
> > -	orig_kmsg = kmsg_redirect;
> > -	kmsg_redirect = SUSPEND_CONSOLE;
> > +	console_suspended = 1;
> > +	system_state = SYSTEM_BOOTING;
> >  	return 0;
> >  }
> >  
> >  void pm_restore_console(void)
> >  {
> > -	acquire_console_sem();
> > -	set_console(orig_fgconsole);
> > +	console_suspended = 0;
> > +	system_state = SYSTEM_BOOTING;
> 
> And we definitely want to go back to SYSTEM_RUNNING or how is it
> called here.

Right. A bit too much cut-and-paste ;)

		Linus


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux