From a3251278e08c69413610808179e2854de3ba252c Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Tue, 5 Jan 2010 18:55:10 +0000 Subject: [PATCH] --- yaml --- r: 179567 b: refs/heads/master c: c81b812a333818c5cc1be2e086c8509d853ebeeb h: refs/heads/master i: 179565: 032331140ab4b4eb60d07ccc0f53225463a450ef 179563: 5dcc82ae1df42752224fb9f5f44d205dbd073912 179559: 1d398bc193bc3ed41ef4f19ae29e92b14848cbf2 179551: 463660f435687451ec33717a946028b429fe4751 v: v3 --- [refs] | 2 +- trunk/arch/powerpc/include/asm/topology.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 4fa2558d2a5a..0ae1154b020c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 46150a050f7a329bf570462dc6df3330cafee926 +refs/heads/master: c81b812a333818c5cc1be2e086c8509d853ebeeb diff --git a/trunk/arch/powerpc/include/asm/topology.h b/trunk/arch/powerpc/include/asm/topology.h index 22f738d12ad9..bbf89701d7a4 100644 --- a/trunk/arch/powerpc/include/asm/topology.h +++ b/trunk/arch/powerpc/include/asm/topology.h @@ -17,7 +17,9 @@ static inline int cpu_to_node(int cpu) #define parent_node(node) (node) -#define cpumask_of_node(node) (&numa_cpumask_lookup_table[node]) +#define cpumask_of_node(node) ((node) == -1 ? \ + cpu_all_mask : \ + &numa_cpumask_lookup_table[node]) int of_node_to_nid(struct device_node *device);