aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2016-05-09 10:38:01 +0200
committerIngo Molnar <mingo@kernel.org>2016-09-30 10:54:07 +0200
commit0e369d757578b23ac50b893f920aa50fdbc45fb6 (patch)
tree54dec53189e66f17883f73e2010250fbc9c24cc4 /include
parentsched/core: Introduce 'struct sched_domain_shared' (diff)
downloadlinux-dev-0e369d757578b23ac50b893f920aa50fdbc45fb6.tar.xz
linux-dev-0e369d757578b23ac50b893f920aa50fdbc45fb6.zip
sched/core: Replace sd_busy/nr_busy_cpus with sched_domain_shared
Move the nr_busy_cpus thing from its hacky sd->parent->groups->sgc location into the much more natural sched_domain_shared location. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 8a878b9649a1..98888f1a03bc 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1069,6 +1069,7 @@ struct sched_group;
struct sched_domain_shared {
atomic_t ref;
+ atomic_t nr_busy_cpus;
};
struct sched_domain {