diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-02-22 20:04:51 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-02-25 04:34:47 -0500 |
commit | 497f0ab39cd25bed317b29482c147c967f7ecd1f (patch) | |
tree | 34c90806c174ae423112f86a4055c07af7734b4b /kernel | |
parent | d11c563dd20ff35da5652c3e1c989d9e10e1d6d0 (diff) |
sched: Better name for for_each_domain_rd
As suggested by Peter Ziljstra, make better choice of name
for for_each_domain_rd(), containing "rcu_dereference", given
that it is but a wrapper for rcu_dereference_check(). The name
rcu_dereference_check_sched_domain() does that and provides a
separate per-subsystem name space.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: laijs@cn.fujitsu.com
Cc: dipankar@in.ibm.com
Cc: mathieu.desnoyers@polymtl.ca
Cc: josh@joshtriplett.org
Cc: dvhltc@us.ibm.com
Cc: niv@us.ibm.com
Cc: peterz@infradead.org
Cc: rostedt@goodmis.org
Cc: Valdis.Kletnieks@vt.edu
Cc: dhowells@redhat.com
LKML-Reference: <1266887105-1528-7-git-send-email-paulmck@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 70ae68680d4..3218f521371 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -645,7 +645,7 @@ static inline int cpu_of(struct rq *rq) | |||
645 | #endif | 645 | #endif |
646 | } | 646 | } |
647 | 647 | ||
648 | #define for_each_domain_rd(p) \ | 648 | #define rcu_dereference_check_sched_domain(p) \ |
649 | rcu_dereference_check((p), \ | 649 | rcu_dereference_check((p), \ |
650 | rcu_read_lock_sched_held() || \ | 650 | rcu_read_lock_sched_held() || \ |
651 | lockdep_is_held(&sched_domains_mutex)) | 651 | lockdep_is_held(&sched_domains_mutex)) |
@@ -658,7 +658,7 @@ static inline int cpu_of(struct rq *rq) | |||
658 | * preempt-disabled sections. | 658 | * preempt-disabled sections. |
659 | */ | 659 | */ |
660 | #define for_each_domain(cpu, __sd) \ | 660 | #define for_each_domain(cpu, __sd) \ |
661 | for (__sd = for_each_domain_rd(cpu_rq(cpu)->sd); __sd; __sd = __sd->parent) | 661 | for (__sd = rcu_dereference_check_sched_domain(cpu_rq(cpu)->sd); __sd; __sd = __sd->parent) |
662 | 662 | ||
663 | #define cpu_rq(cpu) (&per_cpu(runqueues, (cpu))) | 663 | #define cpu_rq(cpu) (&per_cpu(runqueues, (cpu))) |
664 | #define this_rq() (&__get_cpu_var(runqueues)) | 664 | #define this_rq() (&__get_cpu_var(runqueues)) |