* [patch] x86_64/ia64 : Fix compilation error for node_to_first_cpu
@ 2005-12-22 22:21 Ravikiran G Thirumalai
0 siblings, 0 replies; only message in thread
From: Ravikiran G Thirumalai @ 2005-12-22 22:21 UTC (permalink / raw)
To: Linus Torvalds
Cc: Andrew Morton, linux-kernel, Andi Kleen, discuss,
Shai Fultheim (Shai@scalex86.org)
Fixes a compiler error in node_to_first_cpu, __ffs expects unsigned long as
a parameter; instead cpumask_t was being passed. The macro
node_to_first_cpu was not yet used in x86_64 and ia64 arches, and so we never
hit this. This patch replaces __ffs with first_cpu macro, similar to other
arches.
Please apply for 2.6.15
Signed-off-by: Alok N Kataria <alokk@calsoftinc.com>
Signed-off-by: Ravikiran G Thirumalai <kiran@scalex86.org>
Signed-off-by: Shai Fultheim <shai@scalex86.org>
Index: linux-2.6.15-rc6/include/asm-ia64/topology.h
===================================================================
--- linux-2.6.15-rc6.orig/include/asm-ia64/topology.h 2005-10-27 17:02:08.000000000 -0700
+++ linux-2.6.15-rc6/include/asm-ia64/topology.h 2005-12-22 10:48:14.000000000 -0800
@@ -38,7 +38,7 @@
/*
* Returns the number of the first CPU on Node 'node'.
*/
-#define node_to_first_cpu(node) (__ffs(node_to_cpumask(node)))
+#define node_to_first_cpu(node) (first_cpu(node_to_cpumask(node)))
/*
* Determines the node for a given pci bus
Index: linux-2.6.15-rc6/include/asm-x86_64/topology.h
===================================================================
--- linux-2.6.15-rc6.orig/include/asm-x86_64/topology.h 2005-12-22 10:06:01.000000000 -0800
+++ linux-2.6.15-rc6/include/asm-x86_64/topology.h 2005-12-22 10:41:30.000000000 -0800
@@ -23,7 +23,7 @@
#define cpu_to_node(cpu) (cpu_to_node[cpu])
#define parent_node(node) (node)
-#define node_to_first_cpu(node) (__ffs(node_to_cpumask[node]))
+#define node_to_first_cpu(node) (first_cpu(node_to_cpumask[node]))
#define node_to_cpumask(node) (node_to_cpumask[node])
#define pcibus_to_node(bus) ((long)(bus->sysdata))
#define pcibus_to_cpumask(bus) node_to_cpumask(pcibus_to_node(bus));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-22 22:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-22 22:21 [patch] x86_64/ia64 : Fix compilation error for node_to_first_cpu Ravikiran G Thirumalai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®