diff options
author | Donghan Ryu <dryu@nvidia.com> | 2014-05-07 22:53:32 +0900 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2014-05-16 12:03:47 -0700 |
commit | 392903174da55814da5abcb03a3d62af70223051 (patch) | |
tree | 9066d6cd59d7977f403f2a59750d8c7b28788fc0 /drivers/input | |
parent | 81ef3957c5ed9f89d297b38d2b23843a1bb00db3 (diff) |
cfboost: initialize boost values to 0
boost_freq, boost_emc and boost_cpus should be 0
initially if these parameters are not set.
Bug 1385013
Change-Id: I39a6e1f216eb109915ec0f9bc2cb9f2456fdcaef
Reviewed-on: http://git-master/r/406475
Signed-off-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-on: http://git-master/r/409700
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/input-cfboost.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/input/input-cfboost.c b/drivers/input/input-cfboost.c index 56680414ff15..cf9b48a15a2d 100644 --- a/drivers/input/input-cfboost.c +++ b/drivers/input/input-cfboost.c @@ -67,11 +67,11 @@ static struct kernel_param_ops boost_freq_ops = { .get = boost_freq_get, }; module_param_cb(boost_freq, &boost_freq_ops, &boost_freq, 0644); -static unsigned int boost_emc = 924000; /* kHz */ +static unsigned int boost_emc; /* kHz */ module_param(boost_emc, uint, 0644); static unsigned long boost_time = 500; /* ms */ module_param(boost_time, ulong, 0644); -static unsigned long boost_cpus = 1; +static unsigned long boost_cpus; module_param(boost_cpus, ulong, 0644); static bool gpu_wakeup = 1; /* 1 = enabled */ module_param(gpu_wakeup, bool, 0644); @@ -113,7 +113,9 @@ static void cfb_boost(struct kthread_work *w) { trace_input_cfboost_params("boost_params", boost_freq, boost_emc, boost_time); - pm_qos_update_request_timeout(&core_req, boost_cpus, boost_time * 1000); + if (boost_cpus > 0) + pm_qos_update_request_timeout(&core_req, boost_cpus, + boost_time * 1000); if (boost_freq > 0) pm_qos_update_request_timeout(&freq_req, boost_freq, |