Commit Graph
4 Commits
Author SHA1 Message Date
Sylvestre Ledru 6fe3323ba7 Bug 2023419 - Remove Emacs/Vim modelines from hal/ r=emilio,geckoview-reviewers,m_kato
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287847
2026-03-17 07:58:00 +00:00
serge-sans-paille 50a98f95fc Bug 1990650 - Remove useless inclusion of mozilla/BitSet.h r=emilio
Also tidy its own headers while we're at it.

Differential Revision: https://phabricator.services.mozilla.com/D266080
2025-09-28 18:34:25 +00:00
Emilio Cobos Álvarez c489d3a5dc Bug 1976665 - Fix some bustage on windows and gtests. 2025-08-05 13:07:18 +00:00
Jamie Nicol 333b2ab5d5 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