Skip to content

Commit 2b49d84

Browse files
srikardingomolnar
authored andcommitted
sched/numa: Remove the NUMA sched_feature
Variable sched_numa_balancing is available for both CONFIG_SCHED_DEBUG and !CONFIG_SCHED_DEBUG. All code paths now check for sched_numa_balancing. Hence remove sched_feat(NUMA). Suggested-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mel Gorman <mgorman@suse.de> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rik van Riel <riel@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1439290813-6683-4-git-send-email-srikar@linux.vnet.ibm.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent c3b9bc5 commit 2b49d84

2 files changed

Lines changed: 0 additions & 22 deletions

File tree

‎kernel/sched/core.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,12 +2120,6 @@ __read_mostly bool sched_numa_balancing;
21202120
void set_numabalancing_state(bool enabled)
21212121
{
21222122
sched_numa_balancing = enabled;
2123-
#ifdef CONFIG_SCHED_DEBUG
2124-
if (enabled)
2125-
sched_feat_set("NUMA");
2126-
else
2127-
sched_feat_set("NO_NUMA");
2128-
#endif /* CONFIG_SCHED_DEBUG */
21292123
}
21302124

21312125
#ifdef CONFIG_PROC_SYSCTL

‎kernel/sched/features.h‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,5 @@ SCHED_FEAT(RT_PUSH_IPI, true)
7272
SCHED_FEAT(FORCE_SD_OVERLAP, false)
7373
SCHED_FEAT(RT_RUNTIME_SHARE, true)
7474
SCHED_FEAT(LB_MIN, false)
75-
7675
SCHED_FEAT(ATTACH_AGE_LOAD, true)
7776

78-
/*
79-
* Apply the automatic NUMA scheduling policy. Enabled automatically
80-
* at runtime if running on a NUMA machine. Can be controlled via
81-
* numa_balancing=
82-
*/
83-
#ifdef CONFIG_NUMA_BALANCING
84-
85-
/*
86-
* NUMA will favor moving tasks towards nodes where a higher number of
87-
* hinting faults are recorded during active load balancing. It will
88-
* resist moving tasks towards nodes where a lower number of hinting
89-
* faults have been recorded.
90-
*/
91-
SCHED_FEAT(NUMA, true)
92-
#endif

0 commit comments

Comments
 (0)