Nils Schneider

Avoid console switches during suspend/resume

This little patch (against 3.4.6) avoids switching to a kernel console when suspending the system.

  --- a/kernel/power/suspend.c 2012-07-19 21:11:49.000000000 +0200
  +++ b/kernel/power/suspend.c  2012-07-25 20:30:34.445716593 +0200
  @@ -95,8 +95,6 @@
    if (!suspend_ops || !suspend_ops->enter)
      return -EPERM;
   
  - pm_prepare_console();
  -
    error = pm_notifier_call_chain(PM_SUSPEND_PREPARE);
    if (error)
      goto Finish;
  @@ -109,7 +107,6 @@
    dpm_save_failed_step(SUSPEND_FREEZE);
    Finish:
    pm_notifier_call_chain(PM_POST_SUSPEND);
  - pm_restore_console();
    return error;
   }
   
  @@ -254,7 +251,6 @@
   {
    suspend_thaw_processes();
    pm_notifier_call_chain(PM_POST_SUSPEND);
  - pm_restore_console();
   }
   
   /**