summaryrefslogtreecommitdiff
path: root/.mailmap
diff options
context:
space:
mode:
authorTuukka Tikkanen <tuukka.tikkanen@linaro.org>2013-08-14 16:02:36 (GMT)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-08-22 22:24:16 (GMT)
commit0d6a7ffa4cc67cc70bf1f4e24fbb0747632845a2 (patch)
treef551d52b69ba39d22e144c468cf52c4dc73a5afe /.mailmap
parent017099e25fb7e482a249d36a654556d32f601f71 (diff)
downloadlinux-0d6a7ffa4cc67cc70bf1f4e24fbb0747632845a2.tar.xz
cpuidle: Check called function parameter in get_typical_interval()
get_typical_interval() uses int_sqrt() in calculation of standard deviation. The formal parameter of int_sqrt() is unsigned long, which may on some platforms be smaller than the 64 bit unsigned integer used as the actual parameter. The overflow can occur frequently when actual idle period lengths are in hundreds of milliseconds. This patch adds a check for such overflow and rejects the candidate average when an overflow would occur. Signed-off-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions