gpu: nvgpu: uniform approach for both quiesce state exit and BUG()

- We are using exit() API to exit the process when gpu goes to
  quiesce state, but MISRA not allowing to use exit() API.

JIRA NVGPU-7056

Signed-off-by: srajum <srajum@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2588005
(cherry picked from commit 219c172da5b6ae330121009765f7eb090b87e054)
Change-Id: Id5b927693cc684931bd4aa56e66543b673d0c493
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2674411
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
srajum
2021-09-02 16:18:01 +05:30
committed by mobile promotions
parent ee670a0afd
commit ad74b20cca
4 changed files with 14 additions and 10 deletions

View File

@@ -116,7 +116,7 @@ static int nvgpu_sw_quiesce_thread(void *data)
nvgpu_disable_irqs(g);
nvgpu_channel_sw_quiesce(g);
nvgpu_bug_exit(1);
nvgpu_bug_exit();
done:
nvgpu_log_info(g, "done");