diff options
author | Peter Zijlstra <[email protected]> | 2017-08-10 17:10:26 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-08-25 11:12:20 +0200 |
commit | bbdacdfed2f5fa50a2cc9f500a36e05990a0837d (patch) | |
tree | 0ada5cb03b7133b9a42a456cede81e8e1b7a2ba9 /kernel/sched/completion.c | |
parent | 09e0dd8e0f2e197690d34fed8cb4737114d3dd5f (diff) |
sched/debug: Optimize sched_domain sysctl generation
Currently we unconditionally destroy all sysctl bits and regenerate
them after we've rebuild the domains (even if that rebuild is a
no-op).
And since we unconditionally (re)build the sysctl for all possible
CPUs, onlining all CPUs gets us O(n^2) time. Instead change this to
only rebuild the bits for CPUs we've actually installed new domains
on.
Reported-by: Ofer Levi(SW) <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'kernel/sched/completion.c')
0 files changed, 0 insertions, 0 deletions