diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c index 6744699f..77e93458 100644 --- a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c | |||
@@ -70,11 +70,6 @@ static inline int ring_len(struct nvgpu_ctxsw_ring_header *hdr) | |||
70 | return (hdr->write_idx - hdr->read_idx) % hdr->num_ents; | 70 | return (hdr->write_idx - hdr->read_idx) % hdr->num_ents; |
71 | } | 71 | } |
72 | 72 | ||
73 | static inline int ring_space(struct nvgpu_ctxsw_ring_header *hdr) | ||
74 | { | ||
75 | return (hdr->read_idx - hdr->write_idx - 1) % hdr->num_ents; | ||
76 | } | ||
77 | |||
78 | ssize_t gk20a_ctxsw_dev_read(struct file *filp, char __user *buf, size_t size, | 73 | ssize_t gk20a_ctxsw_dev_read(struct file *filp, char __user *buf, size_t size, |
79 | loff_t *off) | 74 | loff_t *off) |
80 | { | 75 | { |