summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/perf/perf.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/perf/perf.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/perf/perf.c')
-rw-r--r--drivers/gpu/nvgpu/perf/perf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/perf/perf.c b/drivers/gpu/nvgpu/perf/perf.c
index 55e67b15..bf63e1ea 100644
--- a/drivers/gpu/nvgpu/perf/perf.c
+++ b/drivers/gpu/nvgpu/perf/perf.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"),
@@ -37,7 +37,7 @@ static void perfrpc_pmucmdhandler(struct gk20a *g, struct pmu_msg *msg,
37 struct perfrpc_pmucmdhandler_params *phandlerparams = 37 struct perfrpc_pmucmdhandler_params *phandlerparams =
38 (struct perfrpc_pmucmdhandler_params *)param; 38 (struct perfrpc_pmucmdhandler_params *)param;
39 39
40 gk20a_dbg_info(""); 40 nvgpu_log_info(g, " ");
41 41
42 if (msg->msg.perf.msg_type != NV_PMU_PERF_MSG_ID_RPC) { 42 if (msg->msg.perf.msg_type != NV_PMU_PERF_MSG_ID_RPC) {
43 nvgpu_err(g, "unsupported msg for VFE LOAD RPC %x", 43 nvgpu_err(g, "unsupported msg for VFE LOAD RPC %x",
@@ -53,7 +53,7 @@ static int pmu_handle_perf_event(struct gk20a *g, void *pmu_msg)
53{ 53{
54 struct nv_pmu_perf_msg *msg = (struct nv_pmu_perf_msg *)pmu_msg; 54 struct nv_pmu_perf_msg *msg = (struct nv_pmu_perf_msg *)pmu_msg;
55 55
56 gk20a_dbg_fn(""); 56 nvgpu_log_fn(g, " ");
57 switch (msg->msg_type) { 57 switch (msg->msg_type) {
58 case NV_PMU_PERF_MSG_ID_VFE_CALLBACK: 58 case NV_PMU_PERF_MSG_ID_VFE_CALLBACK:
59 nvgpu_clk_arb_schedule_vf_table_update(g); 59 nvgpu_clk_arb_schedule_vf_table_update(g);