ovs-thread: count the number of cpu cores.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 10 Mar 2014 16:59:56 +0000 (09:59 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 12 Mar 2014 03:52:35 +0000 (20:52 -0700)
commitfdd73c2366a19ae4c8295bc59a7a62e8eb03954e
tree755937b7f3c70f865750288c130be6fb0895f785
parent5e3411b1a15d2dd927cb59cd81da78cf3198dde5
ovs-thread: count the number of cpu cores.

We use the number of cpu cores to determine the number
of threads that we spawn. We are not yet sure what is
the ideal number of OVS userspace threads that can run
on Hyper-V. Till we figure that out, use the same logic
of counting CPU cores in Windows too.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/ovs-thread.c