diff options
author | Tim Chen <tim.c.chen@linux.intel.com> | 2016-09-21 12:19:03 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-09-30 10:53:18 +0200 |
commit | 8f37961cf22304fb286c7604d3a7f6104dcc1283 (patch) | |
tree | 36c12eb9c7a0266424de4d9aa8d26394c09960ea /net/sched/act_connmark.c | |
parent | 536e0e81e0b04305ce40f6cc4299d29dc9bbc673 (diff) | |
download | blackbird-op-linux-8f37961cf22304fb286c7604d3a7f6104dcc1283.tar.gz blackbird-op-linux-8f37961cf22304fb286c7604d3a7f6104dcc1283.zip |
sched/core, x86/topology: Fix NUMA in package topology bug
Current code can call set_cpu_sibling_map() and invoke sched_set_topology()
more than once (e.g. on CPU hot plug). When this happens after
sched_init_smp() has been called, we lose the NUMA topology extension to
sched_domain_topology in sched_init_numa(). This results in incorrect
topology when the sched domain is rebuilt.
This patch fixes the bug and issues warning if we call sched_set_topology()
after sched_init_smp().
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
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: bp@suse.de
Cc: jolsa@redhat.com
Cc: rjw@rjwysocki.net
Link: http://lkml.kernel.org/r/1474485552-141429-2-git-send-email-srinivas.pandruvada@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/sched/act_connmark.c')
0 files changed, 0 insertions, 0 deletions