projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
[deliverable/linux.git]
/
lib
/
cpumask.c
diff --git
a/lib/cpumask.c
b/lib/cpumask.c
index ea25a034276c047ce479f50c4c2b6de38a570397..3a67dc5ada7d5b2655ae461890519e995d50d7c9 100644
(file)
--- a/
lib/cpumask.c
+++ b/
lib/cpumask.c
@@
-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);
This page took
0.081996 seconds
and
5
git commands to generate.