cpufreq: avoid integer overflows.
authorTim Deegan <tim@xen.org>
Thu, 12 Sep 2013 11:29:21 +0000 (12:29 +0100)
committerTim Deegan <tim@xen.org>
Thu, 12 Sep 2013 16:47:08 +0000 (17:47 +0100)
commit2c40a7fa1cd5c693c424515c7c896e1a5a880bf5
treee276bb1d45a9fcb0b7f75cddc58a3971b794b499
parentb5f9a29421d0d2587683e3a91f0659102e80a942
cpufreq: avoid integer overflows.

The def_sampling_rate() one is, I think, a real bug.  The others were
spotted at the same time and are probably not bugs until we start
dealing with 40GHz CPus.

Coverity CID 1055682
Coverity CID 1055683

Signed-off-by: Tim Deegan <tim@xen.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/cpufreq/cpufreq_ondemand.c