* If cpu == -1, choose the current cpu, with no guarantees about
* potentially being migrated away.
*/
* If cpu == -1, choose the current cpu, with no guarantees about
* potentially being migrated away.
*/
cpu = smp_processor_id();
/* If a specific cpu was requested, pick it up immediately */
cpu = smp_processor_id();
/* If a specific cpu was requested, pick it up immediately */
+ d = service_select_by_cpu(d, -1);
+ if (d)
+ return d;
+
spin_lock(&dpio_list_lock);
d = list_entry(dpio_list.next, struct dpaa2_io, node);
list_del(&d->node);
spin_lock(&dpio_list_lock);
d = list_entry(dpio_list.next, struct dpaa2_io, node);
list_del(&d->node);