Skip to content

Commit

Permalink
[PATCH] x86_64/ia64 : Fix compilation error for node_to_first_cpu
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Alok N Kataria <[email protected]>
Signed-off-by: Ravikiran G Thirumalai <[email protected]>
Signed-off-by: Shai Fultheim <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Ravikiran G Thirumalai authored and Linus Torvalds committed Dec 24, 2005
1 parent 1224b37 commit c660439
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/asm-ia64/topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion include/asm-x86_64/topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extern int __node_distance(int, int);

#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));
Expand Down

0 comments on commit c660439

Please sign in to comment.