projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branches 'sched/rt' and 'sched/urgent' into sched/core
[firefly-linux-kernel-4.4.55.git]
/
kernel
/
sched_rt.c
diff --git
a/kernel/sched_rt.c
b/kernel/sched_rt.c
index 48d1f6e8497ae60a082962e91a47ae3d535e6d16..c79dc7844012d7b69926298673bdffc6fa3ff79b 100644
(file)
--- a/
kernel/sched_rt.c
+++ b/
kernel/sched_rt.c
@@
-1130,8
+1130,8
@@
static inline int pick_optimal_cpu(int this_cpu, cpumask_t *mask)
if ((this_cpu != -1) && cpu_isset(this_cpu, *mask))
return this_cpu;
- first =
first_cpu(*
mask);
- if (first
!= NR_CPUS
)
+ first =
cpumask_first(
mask);
+ if (first
< nr_cpu_ids
)
return first;
return -1;