зеркало из https://github.com/mozilla/gecko-dev.git
938068b316
This adds a function GetHeterogeneousCpuInfo() to HAL, which classifies the processor cores in to "big", "medium", and "little". This is currently only implemented on Android, where it works by parsing the maximum CPU frequency from sysfs. When all CPUs have the same frequency they are all classified as "big", and when there are only 2 different frequencies they are classified as "big" and "little". All CPUs with a frequency in-between the lowest and highest are classified as "medium". This information can be used to count the number of each cores in each category, eg for determining appropriate thread pool sizes. Or to determine the indices of cores in a certain category, eg for setting CPU affinity for certain threads. Differential Revision: https://phabricator.services.mozilla.com/D188478 |
||
---|---|---|
.. | ||
android | ||
cocoa | ||
fallback | ||
linux | ||
sandbox | ||
windows | ||
Hal.cpp | ||
Hal.h | ||
HalBatteryInformation.h | ||
HalIPCUtils.h | ||
HalImpl.h | ||
HalInternal.h | ||
HalLog.h | ||
HalNetworkInformation.h | ||
HalSandbox.h | ||
HalScreenConfiguration.h | ||
HalSensor.h | ||
HalTypes.h | ||
HalWakeLock.cpp | ||
HalWakeLock.h | ||
HalWakeLockInformation.h | ||
HalWakeLockInternal.h | ||
WindowIdentifier.cpp | ||
WindowIdentifier.h | ||
moz.build |