mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
consoleearlysuspend: Fix for 2.6.32
vt_waitactive now needs a 1 based console number Change-Id: I07ab9a3773c93d67c09d928c8d5494ce823ffa2e (cherry picked from commit b28a6a111c2c4779f92f310cfefe10606df4999f)
This commit is contained in:
parent
649c5ec14a
commit
72a790d2e2
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ static void console_early_suspend(struct early_suspend *h)
|
|||
goto err;
|
||||
release_console_sem();
|
||||
|
||||
if (vt_waitactive(EARLY_SUSPEND_CONSOLE))
|
||||
if (vt_waitactive(EARLY_SUSPEND_CONSOLE + 1))
|
||||
pr_warning("console_early_suspend: Can't switch VCs.\n");
|
||||
return;
|
||||
err:
|
||||
|
@ -52,7 +52,7 @@ static void console_late_resume(struct early_suspend *h)
|
|||
return;
|
||||
}
|
||||
|
||||
if (vt_waitactive(orig_fgconsole))
|
||||
if (vt_waitactive(orig_fgconsole + 1))
|
||||
pr_warning("console_late_resume: Can't switch VCs.\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue