summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_clk_arb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_clk_arb.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_clk_arb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_clk_arb.c b/drivers/gpu/nvgpu/common/linux/ioctl_clk_arb.c
index 039f65f8..3ab8cf9e 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_clk_arb.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_clk_arb.c
@@ -209,9 +209,10 @@ static ssize_t nvgpu_clk_arb_read_event_dev(struct file *filp, char __user *buf,
209static int nvgpu_clk_arb_set_event_filter(struct nvgpu_clk_dev *dev, 209static int nvgpu_clk_arb_set_event_filter(struct nvgpu_clk_dev *dev,
210 struct nvgpu_gpu_set_event_filter_args *args) 210 struct nvgpu_gpu_set_event_filter_args *args)
211{ 211{
212 struct gk20a *g = dev->session->g;
212 u32 mask; 213 u32 mask;
213 214
214 gk20a_dbg(gpu_dbg_fn, ""); 215 nvgpu_log(g, gpu_dbg_fn, " ");
215 216
216 if (args->flags) 217 if (args->flags)
217 return -EINVAL; 218 return -EINVAL;
@@ -237,7 +238,7 @@ static long nvgpu_clk_arb_ioctl_event_dev(struct file *filp, unsigned int cmd,
237 u8 buf[NVGPU_EVENT_IOCTL_MAX_ARG_SIZE]; 238 u8 buf[NVGPU_EVENT_IOCTL_MAX_ARG_SIZE];
238 int err = 0; 239 int err = 0;
239 240
240 gk20a_dbg(gpu_dbg_fn, "nr=%d", _IOC_NR(cmd)); 241 nvgpu_log(g, gpu_dbg_fn, "nr=%d", _IOC_NR(cmd));
241 242
242 if ((_IOC_TYPE(cmd) != NVGPU_EVENT_IOCTL_MAGIC) || (_IOC_NR(cmd) == 0) 243 if ((_IOC_TYPE(cmd) != NVGPU_EVENT_IOCTL_MAGIC) || (_IOC_NR(cmd) == 0)
243 || (_IOC_NR(cmd) > NVGPU_EVENT_IOCTL_LAST)) 244 || (_IOC_NR(cmd) > NVGPU_EVENT_IOCTL_LAST))
@@ -681,7 +682,7 @@ int nvgpu_clk_arb_debugfs_init(struct gk20a *g)
681 struct dentry *gpu_root = l->debugfs; 682 struct dentry *gpu_root = l->debugfs;
682 struct dentry *d; 683 struct dentry *d;
683 684
684 gk20a_dbg(gpu_dbg_info, "g=%p", g); 685 nvgpu_log(g, gpu_dbg_info, "g=%p", g);
685 686
686 d = debugfs_create_file( 687 d = debugfs_create_file(
687 "arb_stats", 688 "arb_stats",