cpuidle / menu: move repeated correction factor check to init
authorChander Kashyap <chander.kashyap@linaro.org>
Tue, 22 Apr 2014 12:38:04 +0000 (18:08 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Apr 2014 23:17:03 +0000 (01:17 +0200)
commitbed4d597a0f99b380d24ab3a9da47b62cbf1ad0e
treec8c0d87d29a6d2dc79fdc33431851e2e3405cc2e
parent3836785a1bdcd6706c68ad46bf53adc0b057b310
cpuidle / menu: move repeated correction factor check to init

In menu_select function we check for correction factor every time.
If it is zero we are initializing to unity. Hence move it to init function
and initialise by unity, hence avoid repeated comparisons.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Reviewed-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/governors/menu.c