Messages in this thread | | | Date | Mon, 14 Sep 2020 18:28:41 +0900 | From | Sergey Senozhatsky <> | Subject | Re: [PATCH v1] kernel.h: Move oops_in_progress to printk.h |
| |
On (20/09/11 20:02), Andy Shevchenko wrote: [..] > extern void bust_spinlocks(int yes); > -extern int oops_in_progress; /* If set, an oops, panic(), BUG() or die() is in progress */ > extern int panic_timeout; > extern unsigned long panic_print; > extern int panic_on_oops; > diff --git a/include/linux/printk.h b/include/linux/printk.h > index 34c1a7be3e01..f749a2c2e7a5 100644 > --- a/include/linux/printk.h > +++ b/include/linux/printk.h > @@ -12,6 +12,8 @@ > extern const char linux_banner[]; > extern const char linux_proc_banner[]; > > +extern int oops_in_progress; /* If set, an oops, panic(), BUG() or die() is in progress */
This can also become __read_mostly, I guess.
FWIW, Acked-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
-ss
| |