gpu: nvgpu: init: make quiesce clean function non-static

Make nvgpu_sw_quiesce_remove_support() non-static so that it can be
called from the init unit test and cleanup the running thread.

Bug 2732985

Change-Id: I01afa9c21967b39f6f9f129590189882bbc963b4
Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2224306
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Philip Elcan
2019-10-23 11:22:42 -04:00
committed by Alex Waterman
parent e8d5ed7694
commit c0a7556cb3
2 changed files with 13 additions and 1 deletions

View File

@@ -142,7 +142,7 @@ static int nvgpu_sw_quiesce_init_support(struct gk20a *g)
return 0;
}
static void nvgpu_sw_quiesce_remove_support(struct gk20a *g)
void nvgpu_sw_quiesce_remove_support(struct gk20a *g)
{
#ifndef CONFIG_NVGPU_RECOVERY
if (g->sw_quiesce_init_done) {

View File

@@ -128,6 +128,18 @@ int nvgpu_prepare_poweroff(struct gk20a *g);
*/
void nvgpu_sw_quiesce(struct gk20a *g);
/**
* @brief Cleanup SW Quiesce state
*
* @param g [in] The GPU
*
* If SW Quiesce was previously initialized:
* - Stop the quiesce thread.
* - Destroy cond object.
* - Mark Quiesce as uninitialized.
*/
void nvgpu_sw_quiesce_remove_support(struct gk20a *g);
/**
* @brief Start GPU idle
*