summaryrefslogtreecommitdiff
path: root/kernel/power
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2009-12-14 22:14:52 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:37:53 -0800
commit1c26813171af15585f50070dc158bba056d1cf2c (patch)
tree47b6204a8a29d0d73a304b8cdaa5142db8a2e391 /kernel/power
parentf170b03d86863da07960f53a4076a64380b1dc74 (diff)
consoleearlysuspend: Fix for 2.6.32
vt_waitactive now needs a 1 based console number Change-Id: I07ab9a3773c93d67c09d928c8d5494ce823ffa2e
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/consoleearlysuspend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/power/consoleearlysuspend.c b/kernel/power/consoleearlysuspend.c
index a8befb419158..a3edcb267389 100644
--- a/kernel/power/consoleearlysuspend.c
+++ b/kernel/power/consoleearlysuspend.c
@@ -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");
}