aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorMel Gorman <mgorman@suse.de>2012-11-22 06:16:36 -0500
committerMel Gorman <mgorman@suse.de>2012-12-11 09:42:55 -0500
commit1a687c2e9a99335c9e77392f050fe607fa18a652 (patch)
tree06df958bfdfeaf9f38f333af106b55faa81f1c6b /include/linux/sched.h
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 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 0f4ff2bd03f6..b1e619f9ff1a 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1563,10 +1563,14 @@ struct task_struct {
1563 1563
1564#ifdef CONFIG_NUMA_BALANCING 1564#ifdef CONFIG_NUMA_BALANCING
1565extern void task_numa_fault(int node, int pages, bool migrated); 1565extern void task_numa_fault(int node, int pages, bool migrated);
1566extern void set_numabalancing_state(bool enabled);
1566#else 1567#else
1567static inline void task_numa_fault(int node, int pages, bool migrated) 1568static inline void task_numa_fault(int node, int pages, bool migrated)
1568{ 1569{
1569} 1570}
1571static inline void set_numabalancing_state(bool enabled)
1572{
1573}
1570#endif 1574#endif
1571 1575
1572/* 1576/*