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:
Lakshmanan M
2016-09-02 16:31:15 +05:30
committed by mobile promotions
parent fda4ddfa79
commit e8ba69e383
2 changed files with 4 additions and 0 deletions

View File

@@ -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);

View File

@@ -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;
}