summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2015-03-24 16:24:11 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 22:01:57 -0400
commitd788d86e01b44262b10f7b4d96e0cc8aaf478f74 (patch)
treea75e9986c0ed1d5d2f33d446507881c63a0d04e9 /drivers/gpu/nvgpu/gk20a/gk20a.c
parent42d17018b442850f246696364d79a2ae11350a12 (diff)
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>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 27fce8e0..a6f56763 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -41,7 +41,6 @@
41#include <linux/kthread.h> 41#include <linux/kthread.h>
42 42
43#include <linux/sched.h> 43#include <linux/sched.h>
44#include <linux/input-cfboost.h>
45 44
46#ifdef CONFIG_TEGRA_GK20A 45#ifdef CONFIG_TEGRA_GK20A
47#include <linux/nvhost.h> 46#include <linux/nvhost.h>
@@ -884,13 +883,6 @@ static int gk20a_pm_finalize_poweron(struct device *dev)
884 enable_irq(g->irq_stall); 883 enable_irq(g->irq_stall);
885 enable_irq(g->irq_nonstall); 884 enable_irq(g->irq_nonstall);
886 885
887#ifdef CONFIG_INPUT_CFBOOST
888 if (!g->boost_added) {
889 gk20a_dbg_info("add touch boost");
890 cfb_add_device(dev);
891 g->boost_added = true;
892 }
893#endif
894done: 886done:
895 return err; 887 return err;
896} 888}
@@ -1527,11 +1519,6 @@ static int __exit gk20a_remove(struct platform_device *dev)
1527 if (platform->has_cde) 1519 if (platform->has_cde)
1528 gk20a_cde_destroy(g); 1520 gk20a_cde_destroy(g);
1529 1521
1530#ifdef CONFIG_INPUT_CFBOOST
1531 if (g->boost_added)
1532 cfb_remove_device(&dev->dev);
1533#endif
1534
1535 if (IS_ENABLED(CONFIG_GK20A_DEVFREQ)) 1522 if (IS_ENABLED(CONFIG_GK20A_DEVFREQ))
1536 gk20a_scale_exit(dev); 1523 gk20a_scale_exit(dev);
1537 1524