mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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:
committed by
Dan Willemsen
parent
42d17018b4
commit
d788d86e01
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user