mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-05 00:04:34 -04:00
sched/headers: Rename rcu_dereference_check_sched_domain() => rcu_dereference_sched_domain()
Remove check from the name for being surplus to requirements. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
committed by
Ingo Molnar
parent
45e0922508
commit
f24165bfa7
@@ -12857,7 +12857,7 @@ static int sched_balance_newidle(struct rq *this_rq, struct rq_flags *rf)
|
||||
rq_unpin_lock(this_rq, rf);
|
||||
|
||||
rcu_read_lock();
|
||||
sd = rcu_dereference_check_sched_domain(this_rq->sd);
|
||||
sd = rcu_dereference_sched_domain(this_rq->sd);
|
||||
if (!sd) {
|
||||
rcu_read_unlock();
|
||||
goto out;
|
||||
|
||||
@@ -2010,7 +2010,7 @@ queue_balance_callback(struct rq *rq,
|
||||
rq->balance_callback = head;
|
||||
}
|
||||
|
||||
#define rcu_dereference_check_sched_domain(p) \
|
||||
#define rcu_dereference_sched_domain(p) \
|
||||
rcu_dereference_check((p), lockdep_is_held(&sched_domains_mutex))
|
||||
|
||||
/*
|
||||
@@ -2021,7 +2021,7 @@ queue_balance_callback(struct rq *rq,
|
||||
* preempt-disabled sections.
|
||||
*/
|
||||
#define for_each_domain(cpu, __sd) \
|
||||
for (__sd = rcu_dereference_check_sched_domain(cpu_rq(cpu)->sd); \
|
||||
for (__sd = rcu_dereference_sched_domain(cpu_rq(cpu)->sd); \
|
||||
__sd; __sd = __sd->parent)
|
||||
|
||||
/* A mask of all the SD flags that have the SDF_SHARED_CHILD metaflag */
|
||||
|
||||
Reference in New Issue
Block a user