gecko-dev/hal
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
..
android Bug 1850573 - Add HeterogeneousCpuInfo to HAL with Android implementation. r=geckoview-reviewers,owlish 2023-09-26 12:55:37 +00:00
cocoa Bug 1851529 - Fixup comments in hal/cocoa/smslib.mm r=andi 2023-09-07 04:50:46 +00:00
fallback Bug 1850573 - Add HeterogeneousCpuInfo to HAL with Android implementation. r=geckoview-reviewers,owlish 2023-09-26 12:55:37 +00:00
linux Bug 1848589 [Linux] Don't query battery status on Linux as battery API is not used r=emilio 2023-09-04 07:30:18 +00:00
sandbox Bug 1607634 - Part 4b: Changes for not-nullable actor types being wrapped in NotNull, r=ipc-reviewers,necko-reviewers,mccr8 2023-03-20 15:40:36 +00:00
windows Bug 1852806 - Remove macros for older Windows SDK from hal/. r=gsvelto 2023-09-15 03:19:27 +00:00
Hal.cpp Bug 1850573 - Add HeterogeneousCpuInfo to HAL with Android implementation. r=geckoview-reviewers,owlish 2023-09-26 12:55:37 +00:00
Hal.h Bug 1850573 - Add HeterogeneousCpuInfo to HAL with Android implementation. r=geckoview-reviewers,owlish 2023-09-26 12:55:37 +00:00
HalBatteryInformation.h
HalIPCUtils.h
HalImpl.h
HalInternal.h
HalLog.h
HalNetworkInformation.h
HalSandbox.h
HalScreenConfiguration.h
HalSensor.h
HalTypes.h Bug 1850573 - Add HeterogeneousCpuInfo to HAL with Android implementation. r=geckoview-reviewers,owlish 2023-09-26 12:55:37 +00:00
HalWakeLock.cpp
HalWakeLock.h
HalWakeLockInformation.h
HalWakeLockInternal.h
WindowIdentifier.cpp
WindowIdentifier.h
moz.build Bug 1850573 - Add HeterogeneousCpuInfo to HAL with Android implementation. r=geckoview-reviewers,owlish 2023-09-26 12:55:37 +00:00