summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/perf/perf.c
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2017-06-13 09:15:47 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-19 05:15:53 -0400
commit9d2e7730515acf3114f7d1354277db81b5b022b0 (patch)
treee0214d6d40ac0785536c66495d7e03c2c14625a3 /drivers/gpu/nvgpu/perf/perf.c
parent741e5c45179db066ddf5bed0be6f36e4d0d4010e (diff)
gpu: nvgpu: mark thread stopped when it independently quits
It's technically possible for a thread to exit without first calling nvgpu_thread_stop() in another, so mark the thread exit status from the thread after it has finished instead of in nvgpu_thread_stop(). Do this by starting the thread as a proxy function which calls the actual thread function and then sets the flag. Also, add a new flag to actually signify the running state because the thread->task going null abruptly would break nvgpu_thread_stop(). This does not guarantee that the kernel thread itself has stopped, but the function which can be considered as an "nvgpu thread" will be. Change-Id: Ib911b02bd51342ddeb8e6b9533ef7943f2606d2d Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1501571 Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/perf/perf.c')
0 files changed, 0 insertions, 0 deletions