mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
Move struct gk20a_fecs_trace to new gr/fecs_trace unit and rename it as struct nvgpu_gr_fecs_trace Add enable_lock mutex and enable_count to this structure to support QNX use cases Remove init field from struct gk20a_fecs_trace Rename gk20a_fecs_trace_init() to nvgpu_gr_fecs_trace_init() and move it to new unit Rename gk20a_fecs_trace_deinit() to nvgpu_gr_fecs_trace_deinit() and move it to new unit Update gk20a_fecs_trace_enable() to start thread only when enable_count == 1, otherwise we just increment enable_count Update gk20a_fecs_trace_disable() to stop thread when enable_count == 0, otherwise we just decrement enable_count Before this patch struct gk20a_fecs_trace was not visible in new unit, and hence all mutex_acquire for list_lock were done in fecs_trace_gk20a.c file Since new struct is now available in new unit, move mutex_lock/release calls to gr/fecs_trace unit now Jira NVGPU-1880 Change-Id: I5abfa0165fa1c31716f3d6f2f669284f8959d7cf Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2024562 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>