Commit 74aece72 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Paul E. McKenney

rcu: Fix rcu_dynticks_curr_cpu_in_eqs() vs noinstr

  vmlinux.o: warning: objtool: rcu_nmi_enter()+0x36: call to __kasan_check_read() leaves .noinstr.text section

noinstr cannot have atomic_*() functions in because they're explicitly
annotated, use arch_atomic_*().

Fixes: 2be57f73 ("rcu: Weaken ->dynticks accesses and updates")
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 7663ad9a
...@@ -327,7 +327,7 @@ static void rcu_dynticks_eqs_online(void) ...@@ -327,7 +327,7 @@ static void rcu_dynticks_eqs_online(void)
*/ */
static __always_inline bool rcu_dynticks_curr_cpu_in_eqs(void) static __always_inline bool rcu_dynticks_curr_cpu_in_eqs(void)
{ {
return !(atomic_read(this_cpu_ptr(&rcu_data.dynticks)) & 0x1); return !(arch_atomic_read(this_cpu_ptr(&rcu_data.dynticks)) & 0x1);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment