Re: [PATCH 2/4] nmi: add generic nmi tracking state

From: Peter Zijlstra
Date: Fri Feb 06 2009 - 04:35:59 EST


On Fri, 2009-02-06 at 01:53 -0500, Steven Rostedt wrote:

> This code adds an in_nmi() macro that uses the current tasks preempt count
> to track when it is in NMI context. Other parts of the kernel can
> use this to determine if the context is in NMI context or not.
>
> This code was inspired by the -rt patch in_nmi version that was
> written by Peter Zijlstra.

Which in turn I borrowed from Mathieu.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/