diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_tsg.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c index 55a909dd..433b7c5d 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | |||
@@ -55,8 +55,8 @@ static int gk20a_tsg_get_event_data_from_id(struct tsg_gk20a *tsg, | |||
55 | bool event_found = false; | 55 | bool event_found = false; |
56 | 56 | ||
57 | nvgpu_mutex_acquire(&tsg->event_id_list_lock); | 57 | nvgpu_mutex_acquire(&tsg->event_id_list_lock); |
58 | list_for_each_entry(local_event_id_data, &tsg->event_id_list, | 58 | nvgpu_list_for_each_entry(local_event_id_data, &tsg->event_id_list, |
59 | event_id_node) { | 59 | gk20a_event_id_data, event_id_node) { |
60 | if (local_event_id_data->event_id == event_id) { | 60 | if (local_event_id_data->event_id == event_id) { |
61 | event_found = true; | 61 | event_found = true; |
62 | break; | 62 | break; |
@@ -148,10 +148,10 @@ static int gk20a_tsg_event_id_enable(struct tsg_gk20a *tsg, | |||
148 | if (err) | 148 | if (err) |
149 | goto clean_up_free; | 149 | goto clean_up_free; |
150 | 150 | ||
151 | INIT_LIST_HEAD(&event_id_data->event_id_node); | 151 | nvgpu_init_list_node(&event_id_data->event_id_node); |
152 | 152 | ||
153 | nvgpu_mutex_acquire(&tsg->event_id_list_lock); | 153 | nvgpu_mutex_acquire(&tsg->event_id_list_lock); |
154 | list_add_tail(&event_id_data->event_id_node, &tsg->event_id_list); | 154 | nvgpu_list_add_tail(&event_id_data->event_id_node, &tsg->event_id_list); |
155 | nvgpu_mutex_release(&tsg->event_id_list_lock); | 155 | nvgpu_mutex_release(&tsg->event_id_list_lock); |
156 | 156 | ||
157 | fd_install(local_fd, file); | 157 | fd_install(local_fd, file); |