summaryrefslogtreecommitdiff
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-06-05 18:55:12 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-06-05 18:55:12 -0700
commit2eb57dd2bb1e38f715e351806d42f695fa68b74c (patch)
tree35a35f3738a6c28211947c0a6af38e3acaf55e7d /include/linux/mmzone.h
parent7347b0d7c41c5fde934782a05d86c498235e9c1c (diff)
[PATCH] Don't let processes be scheduled on CPU-less nodes (1/3)
From: Matthew Dobson <colpatch@us.ibm.com> sched_best_cpu schedules processes on nodes based on node_nr_running. For CPU-less nodes, this is always 0, and thus sched_best_cpu tends to migrate tasks to these nodes, which eventually get remigrated elsewhere. This patch adds include/linux/topology.h, and modifies all includes of asm/topology.h to linux/topology.h. A subsequent patch in this series adds helper functions to linux/topology.h to ensure processes are only migrated to nodes with CPUs. Test compiled and booted by Andrew Theurer (habanero@us.ibm.com) on both x440 and ppc64.
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 2a80a0c3fe2f..d60c10f0d9e2 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -255,7 +255,7 @@ static inline struct zone *next_zone(struct zone *zone)
#define MAX_NR_MEMBLKS 1
#endif /* CONFIG_NUMA */
-#include <asm/topology.h>
+#include <linux/topology.h>
/* Returns the number of the current Node. */
#define numa_node_id() (cpu_to_node(smp_processor_id()))