mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: remove sec2 as part of gk20a_remove_support
-Add code to remove/free sec2 data as part of gk20a_remove_support() by calling sec2->remove_support() JIRA NVGPUT-77 Change-Id: Id0804d929e2fe866a0e2a93eff8d8dac6b69bc6b Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1921518 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
88d21daedb
commit
09652f1ebf
@@ -683,6 +683,10 @@ void gk20a_remove_support(struct gk20a *g)
|
|||||||
if (g->pmu.remove_support)
|
if (g->pmu.remove_support)
|
||||||
g->pmu.remove_support(&g->pmu);
|
g->pmu.remove_support(&g->pmu);
|
||||||
|
|
||||||
|
if (g->sec2.remove_support != NULL) {
|
||||||
|
g->sec2.remove_support(&g->sec2);
|
||||||
|
}
|
||||||
|
|
||||||
if (g->acr.remove_support != NULL) {
|
if (g->acr.remove_support != NULL) {
|
||||||
g->acr.remove_support(&g->acr);
|
g->acr.remove_support(&g->acr);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user