Re: [RFC] #MC mess

From: Frederic Weisbecker
Date: Tue Feb 18 2020 - 17:40:25 EST


On Tue, Feb 18, 2020 at 10:49:04PM +0100, Peter Zijlstra wrote:
> On Tue, Feb 18, 2020 at 09:34:04PM +0100, Peter Zijlstra wrote:
> diff --git a/include/linux/hardirq.h b/include/linux/hardirq.h
> index da0af631ded5..146332764673 100644
> --- a/include/linux/hardirq.h
> +++ b/include/linux/hardirq.h
> @@ -71,7 +71,7 @@ extern void irq_exit(void);
> printk_nmi_enter(); \
> lockdep_off(); \
> ftrace_nmi_enter(); \
> - BUG_ON(in_nmi()); \
> + BUG_ON(in_nmi() == 0xf); \

I guess you meant:

BUG_ON(in_nmi() == NMI_MASK);

Thanks.