Joined: Sat May 01, 2010 9:22 am Posts: 4
Location: Albuquerque, NM
|
On at least some dual-core Tegra 2 systems (and on at least some Linux flavors), the second core gets shutdown when (something, somewhere) decides that doing so would save power (and that the load on the system has been light enough to justify that.) When the second core is offline, there's no entry for it in /proc/cpuinfo (so parsing that file isn't a reliable way of detecting that one's on a multicore system.)
sysconf(_SC_PROCESSORS_CONF) returns the number of configured cores and is generally an upper bound on the number of cores that can be online.
|
|