[PATCH] x86_64/ia64 : Fix compilation error for node_to_first_cpu

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]>
This commit is contained in:
Ravikiran G Thirumalai 2005-12-22 14:21:34 -08:00 • committed by Linus Torvalds
commit c660439ba9
2 changed files with 2 additions and 2 deletions

View file

@ -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