If the console lock is taken by non boot cpus, then during
suspend conosole buffer may not flush because all nonboot
cpus will be disabled. So,if no_console_suspend is passed
in kernel commandline, flush console before disabling
nonboot cpus.
Bug
200143487
Change-Id: I1a4455a1f515694a75ff7a96d08f24bf4777bf5c
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/922363
(cherry picked from commit
1f17d55e442d5768a7e37183bf835c20132c3617)
Reviewed-on: http://git-master/r/924111
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
goto Platform_wake;
}
+ /* flush console buffer if console_suspend_enabled cleared */
+ if (!console_suspend_enabled) {
+ console_lock();
+ console_unlock();
+ }
ftrace_stop();
error = disable_nonboot_cpus();
if (error || suspend_test(TEST_CPUS)) {