summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/pmgr/pwrpolicy.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-04-18 22:39:46 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-09 21:26:04 -0400
commitdd739fcb039d51606e9a5454ec0aab17bcb01965 (patch)
tree806ba8575d146367ad1be00086ca0cdae35a6b28 /drivers/gpu/nvgpu/pmgr/pwrpolicy.c
parent7e66f2a63d4855e763fa768047dfc32f6f96b771 (diff)
gpu: nvgpu: Remove gk20a_dbg* functions
Switch all logging to nvgpu_log*(). gk20a_dbg* macros are intentionally left there because of use from other repositories. Because the new functions do not work without a pointer to struct gk20a, and piping it just for logging is excessive, some log messages are deleted. Change-Id: I00e22e75fe4596a330bb0282ab4774b3639ee31e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1704148 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/pmgr/pwrpolicy.c')
-rw-r--r--drivers/gpu/nvgpu/pmgr/pwrpolicy.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/pmgr/pwrpolicy.c b/drivers/gpu/nvgpu/pmgr/pwrpolicy.c
index 2942268f..0d617f6a 100644
--- a/drivers/gpu/nvgpu/pmgr/pwrpolicy.c
+++ b/drivers/gpu/nvgpu/pmgr/pwrpolicy.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -270,7 +270,7 @@ static struct boardobj *construct_pwr_policy(struct gk20a *g,
270 pwrpolicyhwthreshold = (struct pwr_policy_hw_threshold*)board_obj_ptr; 270 pwrpolicyhwthreshold = (struct pwr_policy_hw_threshold*)board_obj_ptr;
271 pwrpolicy = (struct pwr_policy *)board_obj_ptr; 271 pwrpolicy = (struct pwr_policy *)board_obj_ptr;
272 272
273 gk20a_dbg_fn("min=%u rated=%u max=%u", 273 nvgpu_log_fn(g, "min=%u rated=%u max=%u",
274 pwrpolicyparams->limit_min, 274 pwrpolicyparams->limit_min,
275 pwrpolicyparams->limit_rated, 275 pwrpolicyparams->limit_rated,
276 pwrpolicyparams->limit_max); 276 pwrpolicyparams->limit_max);
@@ -358,7 +358,7 @@ static struct boardobj *construct_pwr_policy(struct gk20a *g,
358 pwrpolicyswthreshold->event_id = swthreshold->event_id; 358 pwrpolicyswthreshold->event_id = swthreshold->event_id;
359 } 359 }
360 360
361 gk20a_dbg_info(" Done"); 361 nvgpu_log_info(g, " Done");
362 362
363 return board_obj_ptr; 363 return board_obj_ptr;
364} 364}
@@ -527,7 +527,7 @@ static u32 devinit_get_pwr_policy_table(struct gk20a *g,
527 u32 hw_threshold_policy_index = 0; 527 u32 hw_threshold_policy_index = 0;
528 union pwr_policy_data_union pwr_policy_data; 528 union pwr_policy_data_union pwr_policy_data;
529 529
530 gk20a_dbg_info(""); 530 nvgpu_log_info(g, " ");
531 531
532 ptr = (u8 *)nvgpu_bios_get_perf_table_ptrs(g, 532 ptr = (u8 *)nvgpu_bios_get_perf_table_ptrs(g,
533 g->bios.perf_token, POWER_CAPPING_TABLE); 533 g->bios.perf_token, POWER_CAPPING_TABLE);
@@ -702,7 +702,7 @@ static u32 devinit_get_pwr_policy_table(struct gk20a *g,
702 } 702 }
703 703
704done: 704done:
705 gk20a_dbg_info(" done status %x", status); 705 nvgpu_log_info(g, " done status %x", status);
706 return status; 706 return status;
707} 707}
708 708
@@ -773,6 +773,6 @@ u32 pmgr_policy_sw_setup(struct gk20a *g)
773 g->pmgr_pmu.pmgr_policyobjs.client_work_item.b_pending = false; 773 g->pmgr_pmu.pmgr_policyobjs.client_work_item.b_pending = false;
774 774
775done: 775done:
776 gk20a_dbg_info(" done status %x", status); 776 nvgpu_log_info(g, " done status %x", status);
777 return status; 777 return status;
778} 778}