From 6810a324944ff75822aff6f0abbf761cc2d48791 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Wed, 8 Oct 2003 23:51:05 -0700 Subject: [PATCH] [PATCH] ia64: fix is_headless_node() for systems w/<64p I didn't realize that any_online_cpu() wouldn't work for is_headless_node(), so this patch reverts the function back to using the node_to_cpu_mask[] array, fixing sn2 for systems with less than 64p. --- 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 edf2693988841..a21a48b0190fa 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) (!any_online_cpu(node_to_cpumask(cnode))) +#define is_headless_node(cnode) (!node_to_cpu_mask[cnode]) /* * Check if given a node vertex handle the corresponding node has all the -- 2.53.0