]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cpuidle: menu: Use shifts when calculating averages where possible
authorMel Gorman <mgorman@suse.de>
Wed, 6 Aug 2014 13:19:18 +0000 (14:19 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 6 Aug 2014 19:17:44 +0000 (21:17 +0200)
commitae77930060338226a4377d3b93580c43b5ec82ae
tree161b93ae479de6e0cea6007e9b01819287cc82fc
parentdd38c9d35ba8e40011b36659cae2719aefd11904
cpuidle: menu: Use shifts when calculating averages where possible

We use do_div even though the divisor will usually be a power-of-two
unless there are unusual outliers. Use shifts where possible

Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/governors/menu.c