path: root/kernel/sched/fair.c
diff options
authorMel Gorman <mgorman@suse.de>2012-11-22 11:16:36 +0000
committerMel Gorman <mgorman@suse.de>2012-12-11 14:42:55 +0000
commit1a687c2e9a99335c9e77392f050fe607fa18a652 (patch)
tree06df958bfdfeaf9f38f333af106b55faa81f1c6b /kernel/sched/fair.c
parentb8593bfda1652755136333cdd362de125b283a9c (diff)
mm: sched: numa: Control enabling and disabling of NUMA balancing
This patch adds Kconfig options and kernel parameters to allow the enabling and disabling of automatic NUMA balancing. The existance of such a switch was and is very important when debugging problems related to transparent hugepages and we should have the same for automatic NUMA placement. Signed-off-by: Mel Gorman <mgorman@suse.de>
Diffstat (limited to 'kernel/sched/fair.c')
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 4b577863933..7a02a2082e9 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -811,6 +811,9 @@ void task_numa_fault(int node, int pages, bool migrated)
struct task_struct *p = current;
+ if (!sched_feat_numa(NUMA))
+ return;
/* FIXME: Allocate task-specific structure for placement policy here */