cpumask: Fix invalid uniprocessor mask assumption
[linux-2.6-block.git] / lib / cpumask.c
index a971a82d2f43607c41a6a4f1b16e49a1a1449421..b9728513a4d4018600dbbd77541c8f077766ff54 100644 (file)
@@ -192,6 +192,7 @@ void __init free_bootmem_cpumask_var(cpumask_var_t mask)
 }
 #endif
 
+#if NR_CPUS > 1
 /**
  * cpumask_local_spread - select the i'th cpu with local numa cpu's first
  * @i: index number
@@ -279,3 +280,4 @@ int cpumask_any_distribute(const struct cpumask *srcp)
        return next;
 }
 EXPORT_SYMBOL(cpumask_any_distribute);
+#endif /* NR_CPUS */