rcu-tasks: Convert cond_resched_tasks_rcu_qs() to static inline

In order to make "cc -E" output less annoying, this commit converts
cond_resched_tasks_rcu_qs() to static inline.  You know, the READ_ONCE()
and WRITE_ONCE() macros used to be *so* simple.  ;-)

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
Paul E. McKenney 2026-07-27 15:11:04 -07:00
parent 885d8314e5
commit 0f5fe218d9

View File

@ -208,15 +208,15 @@ static inline void exit_tasks_rcu_finish(void) { }
/**
* cond_resched_tasks_rcu_qs - Report potential quiescent states to RCU
*
* This macro resembles cond_resched(), except that it is defined to
* This function resembles cond_resched(), except that it is defined to
* report potential quiescent states to RCU-tasks even if the cond_resched()
* machinery were to be shut off, as some advocate for PREEMPTION kernels.
*/
#define cond_resched_tasks_rcu_qs() \
do { \
rcu_tasks_qs(current, false); \
cond_resched(); \
} while (0)
static inline void cond_resched_tasks_rcu_qs(void)
{
rcu_tasks_qs(current, false);
cond_resched();
}
/**
* rcu_softirq_qs_periodic - Report RCU and RCU-Tasks quiescent states