mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: gp10x: Add debugfs entry for temperature reading
Added current temperature reading support for gp10x. JIRA DNVGPU-48 Change-Id: If101a68a8a25d741ad5d3d79087142604d7da398 Signed-off-by: Lakshmanan M <lm@nvidia.com> Reviewed-on: http://git-master/r/1213713 (cherry picked from commit 0048cfdb1b642be896da8300b29aaae9ba43a979) Reviewed-on: http://git-master/r/1234093 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
fda4ddfa79
commit
e8ba69e383
@@ -571,6 +571,7 @@ struct gpu_ops {
|
||||
struct {
|
||||
int (*init_therm_setup_hw)(struct gk20a *g);
|
||||
int (*update_therm_gate_ctrl)(struct gk20a *g);
|
||||
void (*therm_debugfs_init)(struct gk20a *g);
|
||||
} therm;
|
||||
struct {
|
||||
int (*prepare_ucode)(struct gk20a *g);
|
||||
|
||||
@@ -104,6 +104,9 @@ int gk20a_init_therm_support(struct gk20a *g)
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
if (g->ops.therm.therm_debugfs_init)
|
||||
g->ops.therm.therm_debugfs_init(g);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user