From: Anton Blanchard Date: Thu, 14 Jan 2010 18:21:35 +0000 (-0500) Subject: alpha: cpumask_of_node() should handle -1 as a node X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=44c36aed43b57ea12140957bebe76d711fbed653;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git alpha: cpumask_of_node() should handle -1 as a node CC: Richard Henderson CC: Ivan Kokshaysky Signed-off-by: Matt Turner CC: linux-alpha@vger.kernel.org CC: Rusty Russell CC: Andrew Morton Signed-off-by: Anton Blanchard --- diff --git a/arch/alpha/include/asm/topology.h b/arch/alpha/include/asm/topology.h index 36b3a30ba0e5..9251e13e144f 100644 --- a/arch/alpha/include/asm/topology.h +++ b/arch/alpha/include/asm/topology.h @@ -28,6 +28,9 @@ static const struct cpumask *cpumask_of_node(int node) { int cpu; + if (node == -1) + return cpu_all_mask; + cpumask_clear(&node_to_cpumask_map[node]); for_each_online_cpu(cpu) {