mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] x86: Allow users to force a panic on NMI
       [not found] <200609262259.k8QMxxa9012876@hera.kernel.org>
@ 2006-09-26 23:58 ` Andrew Morton
  2006-09-27  7:41   ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Morton @ 2006-09-26 23:58 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Andi Kleen, Don Zickus

On Tue, 26 Sep 2006 22:59:59 GMT
Linux Kernel Mailing List <linux-kernel@vger.kernel.org> wrote:

> --- a/kernel/panic.c
> +++ b/kernel/panic.c
> @@ -21,6 +21,7 @@ #include <linux/kexec.h>
>  #include <linux/debug_locks.h>
>  
>  int panic_on_oops;
> +int panic_on_unrecovered_nmi;
>  int tainted;
>  static int pause_on_oops;
>  static int pause_on_oops_flag;

Is visible to all architectures.

> diff --git a/kernel/sysctl.c b/kernel/sysctl.c
> index 040de6b..220e205 100644
> --- a/kernel/sysctl.c
> +++ b/kernel/sysctl.c
> @@ -642,6 +642,14 @@ #if defined(CONFIG_X86_LOCAL_APIC) && de
>  #endif
>  #if defined(CONFIG_X86)
>  	{
> +		.ctl_name	= KERN_PANIC_ON_NMI,
> +		.procname	= "panic_on_unrecovered_nmi",
> +		.data		= &panic_on_unrecovered_nmi,
> +		.maxlen		= sizeof(int),
> +		.mode		= 0644,
> +		.proc_handler	= &proc_dointvec,
> +	},
> +	{

But is x86-only.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] x86: Allow users to force a panic on NMI
  2006-09-26 23:58 ` [PATCH] x86: Allow users to force a panic on NMI Andrew Morton
@ 2006-09-27  7:41   ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2006-09-27  7:41 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List, Don Zickus

On Tue, Sep 26, 2006 at 04:58:57PM -0700, Andrew Morton wrote:
> On Tue, 26 Sep 2006 22:59:59 GMT
> Linux Kernel Mailing List <linux-kernel@vger.kernel.org> wrote:
> 
> > --- a/kernel/panic.c
> > +++ b/kernel/panic.c
> > @@ -21,6 +21,7 @@ #include <linux/kexec.h>
> >  #include <linux/debug_locks.h>
> >  
> >  int panic_on_oops;
> > +int panic_on_unrecovered_nmi;
> >  int tainted;
> >  static int pause_on_oops;
> >  static int pause_on_oops_flag;
> 
> Is visible to all architectures.

Ok, adding a #ifdef

-Andi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-27  7:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200609262259.k8QMxxa9012876@hera.kernel.org>
2006-09-26 23:58 ` [PATCH] x86: Allow users to force a panic on NMI Andrew Morton
2006-09-27  7:41   ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome