Re: [PATCH 2/2] Fix console handling during suspend/resume

Linus Torvalds
2006-06-14T15:21:43Z

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