Re: [PATCH 2/6] lockdep: Change hardirq{s_enabled,_context} to per-cpu variables
From: Peter Zijlstra
Date: Wed May 27 2020 - 13:39:28 EST
On Wed, May 27, 2020 at 05:45:29PM +0200, Peter Zijlstra wrote:
> -do { \
> - if (!current->hardirq_context++) \
> - current->hardirq_threaded = 0; \
> +# define lockdep_hardirq_enter() \
> +do { \
> + if (!this_cpu_inc_return(hardirq_context)) \
this_cpu_inc_return(hardirq_context) == 1
or this_cpu_fetch_inc(), which we don't have.
> + current->hardirq_threaded = 0; \