From 84c0ab81ab28b349c5477b0512b8bbfdb24edc3d Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Wed, 8 Aug 2018 14:53:08 +0530 Subject: gpu: nvgpu: move exec_reg_ops() to regops HAL We right now define HAL exec_reg_ops() under gops.dbg_session_ops operations But we have separate gops.regops operations for all the regops and this would be logically correct place for exec_reg_ops() Move exec_reg_ops() from gops.dbg_session_ops to gops.regops Also rename it to exec_regops() Jira NVGPU-620 Change-Id: If4f70639ffbc892c605f7540a83bce12ed821b52 Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1794999 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index ffa5e318..e8815b53 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -1100,6 +1100,9 @@ struct gpu_ops { int (*handle_pmu_perf_event)(struct gk20a *g, void *pmu_msg); } perf; struct { + int (*exec_regops)(struct dbg_session_gk20a *dbg_s, + struct nvgpu_dbg_reg_op *ops, + u64 num_ops); const struct regop_offset_range* ( *get_global_whitelist_ranges)(void); int (*get_global_whitelist_ranges_count)(void); @@ -1147,9 +1150,6 @@ struct gpu_ops { struct gk20a_debug_output *o); } debug; struct { - int (*exec_reg_ops)(struct dbg_session_gk20a *dbg_s, - struct nvgpu_dbg_reg_op *ops, - u64 num_ops); int (*dbg_set_powergate)(struct dbg_session_gk20a *dbg_s, bool disable_powergate); bool (*check_and_set_global_reservation)( -- cgit v1.2.2