X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fvt_kern.h;fp=include%2Flinux%2Fvt_kern.h;h=56cce345aa8d6e89ea9a5c81747256ffee326b22;hb=8fd4bd22350784d5b2fe9274f6790ba353976415;hp=7f56db4a79f02e02810c3018b34b8a52af2c24a6;hpb=26df6d13406d1a53b0bda08bd712f1924affd7cd;p=pandora-kernel.git diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h index 7f56db4a79f0..56cce345aa8d 100644 --- a/include/linux/vt_kern.h +++ b/include/linux/vt_kern.h @@ -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.