gpu: nvgpu: improvements to NVS code

Fix the bug in NVS worker initialization code. Ensure main thread
waits for NVS worker to start.

Jira NVGPU-8619

Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Change-Id: I2a719bad691099881f3ac4468d32f9e81ece3800
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2773376
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com>
This commit is contained in:
Debarshi Dutta
2022-08-29 17:20:02 +05:30
committed by mobile promotions
parent 71065d8613
commit 50f95f789c

View File

@@ -434,7 +434,7 @@ static int nvgpu_nvs_worker_init(struct gk20a *g)
#else #else
err = nvgpu_worker_init(g, worker, &nvs_worker_ops); err = nvgpu_worker_init(g, worker, &nvs_worker_ops);
#endif #endif
if (err != 0) { if (err == 0) {
/* Ensure that scheduler thread is started as soon as possible to handle /* Ensure that scheduler thread is started as soon as possible to handle
* minimal uptime for applications. * minimal uptime for applications.
*/ */