lkml.org 
[lkml]   [2014]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] FIXME of file toploogy.h for alpha cpus
Date
This patch fixs the FIXME message in the function *cpumask_of_node
for using this function multiple times and the issue with recaluting
the cpu node mask when reusing this function.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
arch/alpha/include/asm/topology.h | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/alpha/include/asm/topology.h b/arch/alpha/include/asm/topology.h
index 9251e13..d301f66 100644
--- a/arch/alpha/include/asm/topology.h
+++ b/arch/alpha/include/asm/topology.h
@@ -31,6 +31,9 @@ static const struct cpumask *cpumask_of_node(int node)
if (node == -1)
return cpu_all_mask;

+ else if (node == &node_to_cpumask_map[node])
+ return &node_to_cpumask_map[node];
+
cpumask_clear(&node_to_cpumask_map[node]);

for_each_online_cpu(cpu) {
--
1.9.1

\
 
 \ /
  Last update: 2014-06-28 07:01    [W:0.065 / U:0.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site