]> git.baikalelectronics.ru Git - kernel.git/commit
cpupower: fix how "cpupower frequency-info" interprets latency
authorJacob Tanenbaum <jtanenba@redhat.com>
Tue, 1 Dec 2015 16:14:17 +0000 (17:14 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Dec 2015 01:30:30 +0000 (02:30 +0100)
commit0df94a0052104d34da8324e5e12dd05c9ad7372f
treeb461a9ef90be234d203f29cf935a72d91064e5f1
parentf4e471255b5a537047637742b3e693056d0360d2
cpupower: fix how "cpupower frequency-info" interprets latency

the intel-pstate driver does not support the ondemand governor and does not
have a valid value in
/sys/devices/system/cpu/cpu[x]/cpufreq/cpuinfo_transition_latency. The
intel-pstate driver sets cpuinfo_transition_latency to CPUFREQ_ETERNAL (-1),
the value written into cpuinfo_transition_latency is defind as an unsigned
int so checking the read value against max unsigned int will determine if the
value is valid.

Signed-off-by: Jacob Tanenbaum <jtanenba@redhat.com>
Signed-off-by: Thomas Renninger <trenn@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/cpupower/utils/cpufreq-info.c