From cb8e4598b51e4978a3aea9721126cd23f4a41ef1 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Wed, 6 Jan 2010 04:55:14 +0000 Subject: [PATCH] --- yaml --- r: 179838 b: refs/heads/master c: e5981fd6d77c63c003cac44ab52da72994e7ead3 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/sparc/include/asm/topology_64.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 364e94308c12..6e04756f34de 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3583cbd951d31517de015eab85eb0b5705bce8a9 +refs/heads/master: e5981fd6d77c63c003cac44ab52da72994e7ead3 diff --git a/trunk/arch/sparc/include/asm/topology_64.h b/trunk/arch/sparc/include/asm/topology_64.h index 600a79035fa1..1c79f32734a0 100644 --- a/trunk/arch/sparc/include/asm/topology_64.h +++ b/trunk/arch/sparc/include/asm/topology_64.h @@ -12,7 +12,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]) struct pci_bus; #ifdef CONFIG_PCI