diff options
author | Alex Frid <afrid@nvidia.com> | 2013-12-10 19:48:52 -0800 |
---|---|---|
committer | Yu-Huan Hsu <yhsu@nvidia.com> | 2013-12-13 13:01:28 -0800 |
commit | 46cf434b6f46b1313e9654ccbef40e970e01672b (patch) | |
tree | 69b319c176c704fa1300782b540758b8cf962b00 /arch/arm/mach-tegra/tegra_cl_dvfs.c | |
parent | dd89f7c14209fb4ecf39b5ff1320d0030723e1d4 (diff) |
ARM: tegra: dvfs: Exempt top floor from SiMon offset
Made sure that SiMon offset for VDD_CPU rail is not applied to maximum
thermal floor (lowest temperature entry in thermal floor profile).
Bug 1343366
Change-Id: Ide935b1402d4e55350db9b182b20a58858e9c78b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/344511
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/tegra_cl_dvfs.c')
-rw-r--r-- | arch/arm/mach-tegra/tegra_cl_dvfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/tegra_cl_dvfs.c b/arch/arm/mach-tegra/tegra_cl_dvfs.c index 1592ce69de30..2fbedca3b472 100644 --- a/arch/arm/mach-tegra/tegra_cl_dvfs.c +++ b/arch/arm/mach-tegra/tegra_cl_dvfs.c @@ -1141,11 +1141,13 @@ static void cl_dvfs_convert_cold_output_floor(struct tegra_cl_dvfs *cld, /* * Convert monotonically decreasing thermal floors at low temperature * into output LUT indexes; make sure there is a room for regulation - * above maximum thermal floor. + * above maximum thermal floor. The latter is also exempt from offset + * application. */ cld->therm_floors_num = cld->safe_dvfs->dvfs_rail->therm_mv_floors_num; for (i = 0; i < cld->therm_floors_num; i++) { - int mv = cld->safe_dvfs->dvfs_rail->therm_mv_floors[i] + offset; + int mv = cld->safe_dvfs->dvfs_rail->therm_mv_floors[i] + + (i ? offset : 0); cld->thermal_out_floors[i] = find_mv_out_cap(cld, mv); } BUG_ON(cld->thermal_out_floors[0] + 1 >= get_output_top(cld)); |