aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_fb_helper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c
index 80fe39d98b0c..aada26f63dec 100644
--- a/drivers/gpu/drm/drm_fb_helper.c
+++ b/drivers/gpu/drm/drm_fb_helper.c
@@ -255,6 +255,13 @@ bool drm_fb_helper_force_kernel_mode(void)
255int drm_fb_helper_panic(struct notifier_block *n, unsigned long ununsed, 255int drm_fb_helper_panic(struct notifier_block *n, unsigned long ununsed,
256 void *panic_str) 256 void *panic_str)
257{ 257{
258 /*
259 * It's a waste of time and effort to switch back to text console
260 * if the kernel should reboot before panic messages can be seen.
261 */
262 if (panic_timeout < 0)
263 return 0;
264
258 printk(KERN_ERR "panic occurred, switching back to text console\n"); 265 printk(KERN_ERR "panic occurred, switching back to text console\n");
259 return drm_fb_helper_force_kernel_mode(); 266 return drm_fb_helper_force_kernel_mode();
260} 267}