diff options
author | Donghan Ryu <dryu@nvidia.com> | 2014-05-03 17:43:48 +0900 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2014-05-16 12:03:31 -0700 |
commit | 81ef3957c5ed9f89d297b38d2b23843a1bb00db3 (patch) | |
tree | 852b3f3136e40b4db075ecd90281462499b80e7a /drivers/input | |
parent | 9df7d75996531e99458fef381258767c98a48d95 (diff) |
cfboost: add boost_cpus
cfboost might want to change the number of min online cpus.
This change adds a new nodes for that.
Bug 1385013
Change-Id: I69aaa1eb93298f3c8413a77ca5cb2fbe39bb345c
Reviewed-on: http://git-master/r/404690
Signed-off-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-on: http://git-master/r/409699
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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/input-cfboost.c b/drivers/input/input-cfboost.c index f71d680f6471..56680414ff15 100644 --- a/drivers/input/input-cfboost.c +++ b/drivers/input/input-cfboost.c @@ -71,6 +71,8 @@ static unsigned int boost_emc = 924000; /* 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; +module_param(boost_cpus, ulong, 0644); static bool gpu_wakeup = 1; /* 1 = enabled */ module_param(gpu_wakeup, bool, 0644); static struct device *gpu_device; @@ -111,7 +113,7 @@ 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, 1, boost_time * 1000); + 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, |