-static inline int pick_optimal_cpu(int this_cpu, cpumask_t *mask)
-{
- int first;
-
- /* "this_cpu" is cheaper to preempt than a remote processor */
- if ((this_cpu != -1) && cpu_isset(this_cpu, *mask))
- return this_cpu;
-
- first = first_cpu(*mask);
- if (first != NR_CPUS)
- return first;
-
- return -1;
-}
-