D8153: Try to read CPU clock from cpufreq/scaling_cur_freq instead of /proc/cpuinfo

Fabian Vogt noreply at phabricator.kde.org
Thu Oct 5 17:15:45 UTC 2017


fvogt created this revision.
fvogt added a reviewer: Plasma.
Restricted Application added a project: Plasma.

REVISION SUMMARY
  From kernel 4.13 on, /proc/cpuinfo always reports the static normative
  CPU clock and not the current one. So try to read the frequency from
  cpufreq and only fall back to cpuinfo it that fails.
  
  BUG: 382561

TEST PLAN
  Started ksysguard, frequency now changes. If the file is not
  readable, the frequency is read from cpuinfo as expected.

REPOSITORY
  R106 KSysguard

BRANCH
  Plasma/5.8

REVISION DETAIL
  https://phabricator.kde.org/D8153

AFFECTED FILES
  ksysguardd/Linux/cpuinfo.c

To: fvogt, #plasma
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20171005/47495ba3/attachment-0001.html>


More information about the Plasma-devel mailing list