mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	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: 2be57f7328 ("rcu: Weaken ->dynticks accesses and updates")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
			
			
This commit is contained in:
		
							parent
							
								
									7663ad9a5d
								
							
						
					
					
						commit
						74aece72f9
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -327,7 +327,7 @@ static void rcu_dynticks_eqs_online(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);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue