summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2010-12-02 10:50:37 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2010-12-06 20:58:43 (GMT)
commitaf5568843594fb71055debe36e521fa8072fcecc (patch)
tree4f35966cb4e1018b05c87d7a10c337d888949e22 /virt
parent5dcc03fe29537edd7819f5b121bf3d779693f37b (diff)
downloadlinux-af5568843594fb71055debe36e521fa8072fcecc.tar.xz
lib: Improve EWMA efficiency by using bitshifts
Using bitshifts instead of division and multiplication should improve performance. That requires weight and factor to be powers of two, but i think this is something we can live with. Thanks to Peter Zijlstra for the improved formula! Signed-off-by: Bruno Randolf <br1@einfach.org> -- v2: use log2.h functions Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions