gecko-dev/hal/fallback
Jamie Nicol 938068b316 Bug 1850573 - Add HeterogeneousCpuInfo to HAL with Android implementation. r=geckoview-reviewers,owlish
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
2023-09-26 12:55:37 +00:00
..
FallbackBattery.cpp
FallbackHeterogeneousCpuInfo.cpp Bug 1850573 - Add HeterogeneousCpuInfo to HAL with Android implementation. r=geckoview-reviewers,owlish 2023-09-26 12:55:37 +00:00
FallbackNetwork.cpp
FallbackPerformanceHintManager.cpp Bug 1848766 - Add PerformanceHintManager implementation to HAL. r=smaug,emilio,geckoview-reviewers,owlish 2023-08-18 12:01:24 +00:00
FallbackProcessPriority.cpp
FallbackScreenConfiguration.cpp
FallbackSensor.cpp
FallbackVibration.cpp