| commit | 8fdd777b01f0d914dfd41e3ed71a02b9d975442b | [log] [tgz] | 
|---|---|---|
| author | Gabriel Marin <gmx@chromium.org> | Sat Aug 17 00:28:09 2019 | 
| committer | Commit Bot <commit-bot@chromium.org> | Sat Aug 17 00:28:09 2019 | 
| tree | 1b3112198f610b682af05376d298dc807705135f | |
| parent | 3582513f84aaacb58b3f651c52d92d8b78b113b1 [diff] | 
base::CPU: compute CPU family and model based on Intel and AMD manuals Update how CPU family and model are computed for x86 architectures, using the specifications in the Intel and AMD manuals. In particular, the old code didn't take into account the extended family when computing the display family. This computed an incorrect family for AMD devices, because the common Intel microarchitectures have extended family 0. Also compute an extended model only for families where it is defined. Moved the computation to a separate function, so it can be tested. The family is used only in three places in the Chromium code base. The use in chrome/browser/metrics/perf/cpu_identity.cc is what motivated this change. The other two uses are used in logging. BUG=b:128528055 Change-Id: I04de6c6cf22e0637246f89cfe0d1538bba194696 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1758824 Reviewed-by: Gabriel Marin <gmx@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Gabriel Marin <gmx@chromium.org> Cr-Commit-Position: refs/heads/master@{#687903}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .