CPU_NEXT() already handles wrapping around to the beginning. Also, in a

system with sparse CPU IDs, you can have a valid CPU ID > mp_ncpus (e.g. if
you have two CPUs 0 and 4, with mp_maxid == 4 and mp_ncpus == 2).

Introduced at svn r235210

Submitted by:	jhb@
Reviewed by:	jfv@
This commit is contained in:
sbruno 2012-08-02 00:00:34 +00:00
parent e5bd3e99ad
commit 9834adb4ca

View File

@ -2522,7 +2522,6 @@ igb_allocate_msix(struct adapter *adapter)
"Bound queue %d to cpu %d\n",
i,igb_last_bind_cpu);
igb_last_bind_cpu = CPU_NEXT(igb_last_bind_cpu);
igb_last_bind_cpu = igb_last_bind_cpu % mp_ncpus;
}
#if __FreeBSD_version >= 800000
TASK_INIT(&que->txr->txq_task, 0, igb_deferred_mq_start,