This repository has been archived by the owner on May 4, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make uv_cpu_info() understand the ARM and MIPS versions of /proc/cpuinfo, it only knew how to deal with the x86 version This commit also fixes a buglet where uv_cpu_info() reported the maximum CPU frequency instead of the actual CPU frequency. That is, before this commit `out/Debug/run-tests platform_output | grep speed | sort | uniq -c` on my system always reported: 8 speed: 3400 Now it reports (for example): 2 speed: 3400 6 speed: 1600 In other words, two CPUs are running at full speed while the others have been scaled back because they're mostly idle. This is a back-port of commit 54bfb66 from the master branch. Fixes #526.
- Loading branch information
1 parent
b2dc1e6
commit 9a48381
Showing
1 changed file
with
155 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9a48381
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TooTallNate Back-ported to v0.8.
9a48381
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.