diff options
-rw-r--r-- | arch/arm/configs/tegra3_android_defconfig | 1 | ||||
-rw-r--r-- | arch/arm/configs/tegra3_defconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/common.c | 31 |
3 files changed, 2 insertions, 31 deletions
diff --git a/arch/arm/configs/tegra3_android_defconfig b/arch/arm/configs/tegra3_android_defconfig index 498caf821b3c..4c533e6000aa 100644 --- a/arch/arm/configs/tegra3_android_defconfig +++ b/arch/arm/configs/tegra3_android_defconfig @@ -49,6 +49,7 @@ CONFIG_PREEMPT=y CONFIG_AEABI=y # CONFIG_OABI_COMPAT is not set CONFIG_HIGHMEM=y +CONFIG_ARM_FLUSH_CONSOLE_ON_RESTART=y CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_CPU_FREQ=y diff --git a/arch/arm/configs/tegra3_defconfig b/arch/arm/configs/tegra3_defconfig index bbb0f01175d3..c649f5e740de 100644 --- a/arch/arm/configs/tegra3_defconfig +++ b/arch/arm/configs/tegra3_defconfig @@ -50,6 +50,7 @@ CONFIG_PREEMPT=y CONFIG_AEABI=y # CONFIG_OABI_COMPAT is not set CONFIG_HIGHMEM=y +CONFIG_ARM_FLUSH_CONSOLE_ON_RESTART=y CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_CPU_FREQ=y diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c index 7d4703f1129d..6b345f43c3f1 100644 --- a/arch/arm/mach-tegra/common.c +++ b/arch/arm/mach-tegra/common.c @@ -419,39 +419,8 @@ static void __init tegra_init_ahb_gizmo_settings(void) gizmo_writel(val, AHB_MEM_PREFETCH_CFG4); } -static bool console_flushed; - -static void tegra_pm_flush_console(void) -{ - if (console_flushed) - return; - console_flushed = true; - - pr_emerg("Restarting %s\n", linux_banner); - if (console_trylock()) { - console_unlock(); - return; - } - - mdelay(50); - - local_irq_disable(); - if (!console_trylock()) - pr_emerg("%s: Console was locked! Busting\n", __func__); - else - pr_emerg("%s: Console was locked!\n", __func__); - console_unlock(); -} - -static void tegra_pm_restart(char mode, const char *cmd) -{ - tegra_pm_flush_console(); - arm_machine_restart(mode, cmd); -} - void __init tegra_init_early(void) { - arm_pm_restart = tegra_pm_restart; #ifndef CONFIG_SMP /* For SMP system, initializing the reset handler here is too late. For non-SMP systems, the function that calls the reset |