input: cfboost: Fix pm_qos_add_request for online cores
Xiaohui Tao [Thu, 27 Jun 2013 00:51:34 +0000 (17:51 -0700)]
cf_core is used to set how many cpu cores to be brought
online. The pm_qos_class is set to be the wrong value.
Change it from PM_QOS_CPU_FREQ_MIN to PM_QOS_MIN_ONLINE_CPUS.

Change-Id: I0905ef1afbc2bc3724367e6d6e69da3dcc566632
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/242644
(cherry picked from commit e69fa302132661c71154a8cc0ff92155cdd834f9)
Reviewed-on: http://git-master/r/244436
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Yogish Kulkarni <yogishk@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

drivers/input/input-cfboost.c

index a6a4a21..964eccf 100644 (file)
@@ -218,7 +218,7 @@ static int __init cfboost_init(void)
                destroy_workqueue(cfb_wq);
                return ret;
        }
-       pm_qos_add_request(&core_req, PM_QOS_CPU_FREQ_MIN,
+       pm_qos_add_request(&core_req, PM_QOS_MIN_ONLINE_CPUS,
                           PM_QOS_DEFAULT_VALUE);
        pm_qos_add_request(&freq_req, PM_QOS_CPU_FREQ_MIN,
                           PM_QOS_DEFAULT_VALUE);