diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-06-05 18:55:12 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-05 18:55:12 -0700 |
| commit | 2eb57dd2bb1e38f715e351806d42f695fa68b74c (patch) | |
| tree | 35a35f3738a6c28211947c0a6af38e3acaf55e7d /drivers/base/node.c | |
| parent | 7347b0d7c41c5fde934782a05d86c498235e9c1c (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 'drivers/base/node.c')
| -rw-r--r-- | drivers/base/node.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c index 48fa6de5580a..2f77b0afb862 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c @@ -7,8 +7,7 @@ #include <linux/init.h> #include <linux/mm.h> #include <linux/node.h> - -#include <asm/topology.h> +#include <linux/topology.h> static struct class node_class = { |
