kernel - Fix SMP assumption of at least 2 cpus w/TCP
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 31 Jan 2011 21:09:39 +0000 (13:09 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 31 Jan 2011 21:09:39 +0000 (13:09 -0800)
commit985b2cb052a8dcc949a48c55a078b49991492709
tree7097c3396206e77da3e929d606e37ab33771b87e
parent58bb3381c4471bee358b69dec424840490348f65
kernel - Fix SMP assumption of at least 2 cpus w/TCP

* TCP was assuming at least 2 cpus on SMP builds and would panic if only
  1 cpu was available.

* Fix by testing ncpus even for SMP builds.

* This problem did not effect UP builds.
sys/netinet/tcp_subr.c
sys/netinet/tcp_usrreq.c