Commit 117f683c authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu: Replace this_cpu_ptr() with __this_cpu_read()



Because __this_cpu_read() can be lighter weight than equivalent uses of
this_cpu_ptr(), this commit replaces the latter with the former.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
parent 05f41571
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -597,7 +597,7 @@ rcu_preempt_deferred_qs_irqrestore(struct task_struct *t, unsigned long flags)
 */
static bool rcu_preempt_need_deferred_qs(struct task_struct *t)
{
	return (this_cpu_ptr(&rcu_data)->deferred_qs ||
	return (__this_cpu_read(rcu_data.deferred_qs) ||
		READ_ONCE(t->rcu_read_unlock_special.s)) &&
	       t->rcu_read_lock_nesting <= 0;
}