Xiaoguang Chen 3baa976ae6 cpufreq: conservative: fix requested_freq reduction issue
When decreasing frequency, requested_freq may be less than
freq_target, So requested_freq minus freq_target may be negative,
But reqested_freq's unit is unsigned int, then the negative result
will be one larger interger which may be even higher than
requested_freq.

This patch is to fix such issue. when result becomes negative,
set requested_freq as the min value of policy.

Signed-off-by: Xiaoguang Chen <chenxg@marvell.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2013-11-07 19:36:19 +01:00
..
2013-10-11 07:31:47 +05:30
2013-09-03 11:37:15 -07:00
2013-10-07 17:08:26 +02:00
2013-09-09 16:35:29 -07:00
2013-10-16 03:17:47 +01:00
2013-09-06 13:30:06 -07:00
2013-09-13 15:09:52 +02:00
2013-09-13 15:09:52 +02:00
2013-09-06 13:21:16 -07:00
2013-10-16 13:22:16 -07:00
2013-09-03 11:37:15 -07:00
2013-09-26 15:33:23 +03:00
2013-09-25 15:50:53 -07:00