diff options
author | Slávek Banko <[email protected]> | 2020-01-09 01:42:35 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-01-09 01:42:52 +0100 |
commit | ddf0666f4c03a6e63138b7ca2db790fdc976fedd (patch) | |
tree | af89a29db1474cf86e66bed639e8cfd06b04a7ba /kdoctools/help.protocol | |
parent | d51d6d349d94947b061bec765fa89a3af1aa1524 (diff) | |
download | tdelibs-ddf0666f4c03a6e63138b7ca2db790fdc976fedd.tar.gz tdelibs-ddf0666f4c03a6e63138b7ca2db790fdc976fedd.zip |
tdehwlib: Fix parsing of CPU cores frequency information
+ The current frequency is parsed from the scaling_cur_freq file
If the current frequency is not found in /proc/cpuinfo, the attempt
to read value from cpuinfo_cur_freq failed because only root can
read this file.
+ The have_frequency flag is not set when parsing current frequency from sysfs
Setting the have_frequency flag after parsing current frequency for the
first core caused the current frequency not to be parsed for other cores.
+ Frequency characteristics are parsed for all cores
The assumption that the frequency characteristics for all cores will be
the same as the first core is no longer reliable. There are heterogeneous
architectures - for example ARM big.LITTLE.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit ba82cdf5be78b46889dc0d1e3906e353489925ad)
Diffstat (limited to 'kdoctools/help.protocol')
0 files changed, 0 insertions, 0 deletions