lkml.org 
[lkml]   [2007]   [Jan]   [12]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 12 Jan 2007 13:20:16 -0800
FromPaul Jackson <>
SubjectRe: 'struct task_struct' has no member named 'mems_allowed' (was: Re: 2.6.20-rc4-mm1)
Christoph wrote:
> +++ linux-2.6.20-rc4-mm1/mm/mempolicy.c	2007-01-12 13:21:30.220968608 -0600
> ...> +#ifdef CONFIG_CPUSETS

Argh - minor detail, but this is the first (outside of fs/proc/base.c)
"#ifdef CONFIG_CPUSETS" in a kernel *.c file.  I prefer to avoid that.

How about doing this as I suggested in my previous message, like the
other cpuset hooks, with a cpuset_* macro in include/linux/cpuset.h?


This macro would either be the 'nodes_and(...)' code if CPUSETS are
configured, else a no-op.  Say something like ...

	cpuset_restrict_to_current_mems_allowed(nodes);

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@sgi.com> 1.925.600.0401
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-01-12 21:39    [from the cache]
©2003-2008