]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
cpufreq: Return error if ->get() failed in cpufreq_update_policy()
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 25 Feb 2014 08:59:44 +0000 (14:29 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 1 Mar 2014 00:39:30 +0000 (01:39 +0100)
commitbd0fa9bb455d9b58ec2d7a36cd08afed9e3411b4
tree450e9eac17b1d86c277ae27e20d5972147ad5b8f
parent52e7e816420383a340cfb6c3ffd12477c3c80b76
cpufreq: Return error if ->get() failed in cpufreq_update_policy()

cpufreq_update_policy() calls cpufreq_driver->get() to get current
frequency of a CPU and it is not supposed to fail or return zero.
Return error in case that happens.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c