tegra: gpu: disable touch boost for gpu

Gpu boosting with input events is causing more gpu power consumption
than required. To avoid this, touch boot for gpu is disabled by not
registering gpu device for cfboost frame work. Current rail gate
entry/exit latencies are fast enough to give smooth user experience.

Bug 200087243

Change-Id: I18673d9c95a44ce9bee87e860b4edb29212dc766
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/721989
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Seshendra Gadagottu
2015-03-24 13:24:11 -07:00
committed by Dan Willemsen
parent 42d17018b4
commit d788d86e01
2 changed files with 0 additions and 16 deletions

View File

@@ -41,7 +41,6 @@
#include <linux/kthread.h>
#include <linux/sched.h>
#include <linux/input-cfboost.h>
#ifdef CONFIG_TEGRA_GK20A
#include <linux/nvhost.h>
@@ -884,13 +883,6 @@ static int gk20a_pm_finalize_poweron(struct device *dev)
enable_irq(g->irq_stall);
enable_irq(g->irq_nonstall);
#ifdef CONFIG_INPUT_CFBOOST
if (!g->boost_added) {
gk20a_dbg_info("add touch boost");
cfb_add_device(dev);
g->boost_added = true;
}
#endif
done:
return err;
}
@@ -1527,11 +1519,6 @@ static int __exit gk20a_remove(struct platform_device *dev)
if (platform->has_cde)
gk20a_cde_destroy(g);
#ifdef CONFIG_INPUT_CFBOOST
if (g->boost_added)
cfb_remove_device(&dev->dev);
#endif
if (IS_ENABLED(CONFIG_GK20A_DEVFREQ))
gk20a_scale_exit(dev);

View File

@@ -412,9 +412,6 @@ struct gk20a {
void __iomem *bar1_saved;
bool power_on;
#ifdef CONFIG_INPUT_CFBOOST
bool boost_added;
#endif
struct rw_semaphore busy_lock;