OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[sagit-ice-cold/kernel_xiaomi_msm8998.git]
/
lib
/
cpumask.c
diff --git
a/lib/cpumask.c
b/lib/cpumask.c
index
5f62708
..
5a70f61
100644
(file)
--- a/
lib/cpumask.c
+++ b/
lib/cpumask.c
@@
-16,11
+16,10
@@
int cpumask_next_and(int n, const struct cpumask *src1p,
const struct cpumask *src2p)
{
int cpumask_next_and(int n, const struct cpumask *src1p,
const struct cpumask *src2p)
{
- struct cpumask tmp;
-
- if (cpumask_and(&tmp, src1p, src2p))
- return cpumask_next(n, &tmp);
- return nr_cpu_ids;
+ while ((n = cpumask_next(n, src1p)) < nr_cpu_ids)
+ if (cpumask_test_cpu(n, src2p))
+ break;
+ return n;
}
EXPORT_SYMBOL(cpumask_next_and);
}
EXPORT_SYMBOL(cpumask_next_and);