Files
linux-legacy/include/asm-ia64
Mike Travis aa6b54461c asm-generic: add node_to_cpumask_ptr macro
Create a simple macro to always return a pointer to the node_to_cpumask(node)
value.  This relies on compiler optimization to remove the extra indirection:

    #define node_to_cpumask_ptr(v, node) 		\
	    cpumask_t _##v = node_to_cpumask(node), *v = &_##v

For those systems with a large cpumask size, then a true pointer
to the array element can be used:

    #define node_to_cpumask_ptr(v, node)		\
	    cpumask_t *v = &(node_to_cpumask_map[node])

A node_to_cpumask_ptr_next() macro is provided to access another
node_to_cpumask value.

The other change is to always include asm-generic/topology.h moving the
ifdef CONFIG_NUMA to this same file.

Note: there are no references to either of these new macros in this patch,
only the definition.

Based on 2.6.25-rc5-mm1

# alpha
Cc: Richard Henderson <rth@twiddle.net>

# fujitsu
Cc: David Howells <dhowells@redhat.com>

# ia64
Cc: Tony Luck <tony.luck@intel.com>

# powerpc
Cc: Paul Mackerras <paulus@samba.org>
Cc: Anton Blanchard <anton@samba.org>

# sparc
Cc: David S. Miller <davem@davemloft.net>
Cc: William L. Irwin <wli@holomorphy.com>

# x86
Cc: H. Peter Anvin <hpa@zytor.com>

Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-04-19 19:44:58 +02:00
..
2008-04-08 13:51:35 -07:00
2008-01-30 13:34:07 +01:00
2008-02-04 15:19:16 -08:00
2006-12-12 12:00:55 -08:00
2006-01-08 20:14:02 -08:00
2007-10-19 11:53:41 -07:00
2008-02-03 16:32:51 +02:00
2007-10-16 11:27:26 +02:00
2007-02-05 18:46:40 -08:00
2006-03-26 08:56:54 -08:00
2008-03-12 16:27:35 -07:00
2007-07-17 10:23:11 -07:00
2007-07-25 12:56:39 -07:00
2008-04-18 00:46:35 +02:00
2006-01-10 08:01:34 -08:00
2007-12-07 16:11:12 -08:00
2007-05-08 11:15:20 -07:00
2006-03-24 13:12:46 -08:00
2008-02-04 15:42:06 -08:00
2008-02-04 15:42:06 -08:00
2008-04-11 15:21:35 -07:00
2008-04-08 13:51:35 -07:00
2008-04-09 13:05:54 -07:00
2008-02-11 13:23:46 -08:00
2007-07-12 16:04:39 -07:00
2008-04-09 10:10:18 -07:00
2007-05-11 08:29:34 -07:00
2007-01-11 18:18:22 -08:00
2008-04-17 10:42:34 -04:00
2007-02-12 09:48:39 -08:00
2007-10-19 11:53:41 -07:00
2006-02-15 13:37:04 -08:00
2008-02-07 08:42:30 -08:00