From: Joe Stringer Date: Fri, 6 Dec 2013 07:42:21 +0000 (+0000) Subject: lib: Determine cpu core count with /proc/cpuinfo. X-Git-Tag: sliver-openvswitch-2.0.90-1~1^2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=deaa2985faa924fe2f87f669bdcd35617ffe774f;hp=deaa2985faa924fe2f87f669bdcd35617ffe774f;p=sliver-openvswitch.git lib: Determine cpu core count with /proc/cpuinfo. On systems that provide /proc/cpuinfo similar to Linux on x86, this should allow us to choose a better default value for the number of upcall handler threads -- in particular, it avoids counting hyper-thread cores. If /proc/cpuinfo cannot be parsed for any reason, fall back to using sysconf(). Signed-off-by: Joe Stringer Signed-off-by: Ethan Jackson Acked-by: Ethan Jackson ---