mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-09-23 23:24:57 +00:00
consoleearlysuspend: Fix for 2.6.32
vt_waitactive now needs a 1 based console number Change-Id: I07ab9a3773c93d67c09d928c8d5494ce823ffa2e
This commit is contained in:
committed by
Ahmed Ammar
parent
69a035687b
commit
1905b3c1b4
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user