]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
cpufreq: Make sure target freq is within limits
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 31 Oct 2012 00:28:21 +0000 (01:28 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:33:09 +0000 (00:33 +0100)
commit7249924e537816368c4a35afd97ab311f75a6368
treea332ffc88c23988b4add2bab60705357a230b705
parent5a1c022850ea5d64c2997bf9b89f5ae112d5ee4d
cpufreq: Make sure target freq is within limits

__cpufreq_driver_target() must not pass target frequency beyond the
limits of current policy.

Today most of cpufreq platform drivers are doing this check in their
target routines. Why not move it to __cpufreq_driver_target()?

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