From 635e9946b718d9f0c35053b59c745ae529429f25 Mon Sep 17 00:00:00 2001 From: Peter Boonstoppel Date: Mon, 1 May 2017 10:19:23 -0700 Subject: gpu: nvgpu: Remove gk20a_scale_notify_busy/idle() hooks Remove dependency for nvgpu to invoke devfreq govenor on every gk20a_busy/idle() call. This dependency was originally necessary to track GPU load (busy vs idle) in software. However, since we currently read the load GPU from HW/PMU there is no need to invoke the devfreq governor in this path. Instead it can use timer-based polling. Jira NVGPU-20 Change-Id: Id09f89a8a562ed49164a2e06dcbb901e4a46e7d5 Signed-off-by: Peter Boonstoppel Reviewed-on: https://git-master/r/1473140 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/common/linux/module.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'drivers/gpu/nvgpu/common') diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index 99bbc25e..c6794e44 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c @@ -96,8 +96,6 @@ int gk20a_busy(struct gk20a *g) } } - gk20a_scale_notify_busy(dev); - fail: up_read(&g->busy_lock); @@ -121,16 +119,8 @@ void gk20a_idle(struct gk20a *g) return; if (pm_runtime_enabled(dev)) { -#ifdef CONFIG_PM - if (atomic_read(&g->dev->power.usage_count) == 1) - gk20a_scale_notify_idle(dev); -#endif - pm_runtime_mark_last_busy(dev); pm_runtime_put_sync_autosuspend(dev); - - } else { - gk20a_scale_notify_idle(dev); } } -- cgit v1.2.2