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/gp106/hal_gp106.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c') diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index 07846337..a2e76a00 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c @@ -672,6 +672,7 @@ static const struct gpu_ops gp106_ops = { .get_current_pstate = nvgpu_clk_arb_get_current_pstate, }, .regops = { + .exec_regops = exec_regops_gk20a, .get_global_whitelist_ranges = gp106_get_global_whitelist_ranges, .get_global_whitelist_ranges_count = @@ -720,7 +721,6 @@ static const struct gpu_ops gp106_ops = { .post_events = gk20a_dbg_gpu_post_events, }, .dbg_session_ops = { - .exec_reg_ops = exec_regops_gk20a, .dbg_set_powergate = dbg_set_powergate, .check_and_set_global_reservation = nvgpu_check_and_set_global_reservation, -- cgit v1.2.2