Messages in this thread | | | Date | Wed, 27 May 2020 19:39:18 +0200 | From | Peter Zijlstra <> | Subject | Re: [PATCH 2/6] lockdep: Change hardirq{s_enabled,_context} to per-cpu variables |
| |
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; \
| |