Index: linux-2.6.14-rc5-mm1/include/linux/cpuset.h =================================================================== --- linux-2.6.14-rc5-mm1.orig/include/linux/cpuset.h 2005-10-19 23:23:05.000000000 -0700 +++ linux-2.6.14-rc5-mm1/include/linux/cpuset.h 2005-11-04 11:49:12.000000000 -0800 @@ -12,6 +12,29 @@ #include #include +static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) +{ + return node_possible_map; +} + +static inline int node_remap(int oldbit, const nodemask_t *old, const nodemask_t *new) +{ + int op, np; + + if (nodes_empty(*old) || nodes_empty(*new)) + return -1; + + for (op = first_node(*old), np = first_node(*new); + op < MAX_NUMNODES; + op = next_node(op, *old), np = next_node(np, *new)) { + if (np == MAX_NUMNODES) + np = first_node(*new); + if (op == oldbit) + return np; + } + return -1; +} + #ifdef CONFIG_CPUSETS extern int cpuset_init(void);