cpufreq: CPPC: Avoid overflow when calculating desired_perf
authorHoan Tran <hotran@apm.com>
Wed, 14 Sep 2016 23:08:28 +0000 (16:08 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Sep 2016 21:59:19 +0000 (23:59 +0200)
commitf89f4147f76f91bfff6f32890fc34148178f144d
tree24b79bb78cb49335c3060f200b69b96a044ab150
parente01072d22d4e7f9ca966f848def22fe41eaef4de
cpufreq: CPPC: Avoid overflow when calculating desired_perf

This patch fixes overflow issue when calculating the desired_perf.

Fixes: ad38677df44b (cpufreq: CPPC: Force reporting values in KHz to fix user space interface)
Signed-off-by: Hoan Tran <hotran@apm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cppc_cpufreq.c