From 0e777a641c93056f3398383f92addbe6269f1dd3 Mon Sep 17 00:00:00 2001 From: Jack Steiner Date: Mon, 10 Nov 2003 22:35:29 -0800 Subject: [PATCH] [PATCH] ia64: fix is_headless_node() for SN Without this patch, SN machines which have nodes that contain memory only (no CPUs will hang. --- include/asm-ia64/sn/nodepda.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-ia64/sn/nodepda.h b/include/asm-ia64/sn/nodepda.h index a21a48b0190fa..b8ecb51db321c 100644 --- a/include/asm-ia64/sn/nodepda.h +++ b/include/asm-ia64/sn/nodepda.h @@ -128,7 +128,7 @@ typedef struct irqpda_s irqpda_t; * Check if given a compact node id the corresponding node has all the * cpus disabled. */ -#define is_headless_node(cnode) (!node_to_cpu_mask[cnode]) +#define is_headless_node(cnode) (nr_cpus_node(cnode) == 0) /* * Check if given a node vertex handle the corresponding node has all the -- 2.53.0