mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: move nvgpu_gr_wait_initialized to hal
Move nvgpu_gr_wait_initialized to a gr.init hal function. Move to hal function to avoid circular dependencies of headers. Update nvgpu_gr_wait_initialized call to g->ops.gr.init.wait_initialized JIRA NVGPU-3016 Change-Id: Ia2e5f78da8528c76a8d08512151483579f250676 Signed-off-by: Vinod G <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2085740 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
6177eacc71
commit
1819c36562
@@ -21,7 +21,6 @@
|
||||
*/
|
||||
|
||||
#include <nvgpu/gk20a.h>
|
||||
#include <nvgpu/gr/gr.h>
|
||||
#include <nvgpu/pmu.h>
|
||||
#include <nvgpu/power_features/pg.h>
|
||||
|
||||
@@ -47,7 +46,7 @@ int nvgpu_pg_elpg_enable(struct gk20a *g)
|
||||
return 0;
|
||||
}
|
||||
|
||||
nvgpu_gr_wait_initialized(g);
|
||||
g->ops.gr.init.wait_initialized(g);
|
||||
|
||||
nvgpu_mutex_acquire(&g->cg_pg_lock);
|
||||
if (g->elpg_enabled) {
|
||||
@@ -67,7 +66,7 @@ int nvgpu_pg_elpg_disable(struct gk20a *g)
|
||||
return 0;
|
||||
}
|
||||
|
||||
nvgpu_gr_wait_initialized(g);
|
||||
g->ops.gr.init.wait_initialized(g);
|
||||
|
||||
nvgpu_mutex_acquire(&g->cg_pg_lock);
|
||||
if (g->elpg_enabled) {
|
||||
@@ -88,7 +87,7 @@ int nvgpu_pg_elpg_set_elpg_enabled(struct gk20a *g, bool enable)
|
||||
return 0;
|
||||
}
|
||||
|
||||
nvgpu_gr_wait_initialized(g);
|
||||
g->ops.gr.init.wait_initialized(g);
|
||||
|
||||
nvgpu_mutex_acquire(&g->cg_pg_lock);
|
||||
if (enable) {
|
||||
|
||||
Reference in New Issue
Block a user