lkml.org 
[lkml]   [2020]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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; \

\
 
 \ /
  Last update: 2020-05-27 19:39    [W:0.053 / U:1.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site