vt/console: try harder to print output when panicing
[pandora-kernel.git] / include / linux / vt_kern.h
index 7f56db4..56cce34 100644 (file)
@@ -100,6 +100,13 @@ extern int unbind_con_driver(const struct consw *csw, int first, int last,
                             int deflt);
 int vty_init(const struct file_operations *console_fops);
 
+static inline bool vt_force_oops_output(struct vc_data *vc)
+{
+       if (oops_in_progress && vc->vc_panic_force_write)
+               return true;
+       return false;
+}
+
 /*
  * vc_screen.c shares this temporary buffer with the console write code so that
  * we can easily avoid touching user space while holding the console spinlock.