]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - lib/cpumask.c
[PATCH] autofs4: can't mount due to mount point dir not empty
[linux-2.6-omap-h63xx.git] / lib / cpumask.c
index ea25a034276c047ce479f50c4c2b6de38a570397..3a67dc5ada7d5b2655ae461890519e995d50d7c9 100644 (file)
@@ -31,3 +31,15 @@ int highest_possible_processor_id(void)
        return highest;
 }
 EXPORT_SYMBOL(highest_possible_processor_id);
+
+int __any_online_cpu(const cpumask_t *mask)
+{
+       int cpu;
+
+       for_each_cpu_mask(cpu, *mask) {
+               if (cpu_online(cpu))
+                       break;
+       }
+       return cpu;
+}
+EXPORT_SYMBOL(__any_online_cpu);