mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: move therm debugfs to linux
Move debugfs related code of therm from common driver to linux specific part of the driver. gp106_therm_debugfs_init() is updated to use nvgpu_os_linux_ops. This also affects gv100 as gp106_therm_debugfs_init is used for gv100 as well. JIRA NVGPU-603 Change-Id: Ia293d14599bc0c91fd1e917b5a430bd8f3d96e56 Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1797906 GVS: Gerrit_Virtual_Submit 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:
committed by
mobile promotions
parent
0406900ca9
commit
bcdac829f4
@@ -206,6 +206,14 @@ int nvgpu_finalize_poweron_linux(struct nvgpu_os_linux *l)
|
||||
}
|
||||
}
|
||||
|
||||
if (l->ops.therm.init_debugfs) {
|
||||
err = l->ops.therm.init_debugfs(g);
|
||||
if (err) {
|
||||
nvgpu_err(g, "failed to init linux therm debugfs");
|
||||
return err;
|
||||
}
|
||||
}
|
||||
|
||||
l->init_done = true;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user