diff options
author | Diwakar Tundlam <dtundlam@nvidia.com> | 2011-07-22 16:22:34 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:47:53 -0800 |
commit | d168fe5781ef6da529449f98d5d495f52848dcba (patch) | |
tree | c89533aeaa61d1a8316672c8b4f5621664bf18e3 | |
parent | b4445c0a7c94ae7b009bf7807ddafadceae8a9df (diff) |
Arm: Tegra: Power: Set throttling ext-sensor temp correctly
Bug ID: 844882
- Set throttling temperature in ext temp sensor nct1008 for cardhu to 75C
- Fix bug in nct1008 temp sensor driver in disable throttling logic
Original-Change-Id: I2ed8aab63186f16c554ca459e71f3437119bd4e6
Reviewed-on: http://git-master/r/42707
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Rebase-Id: Rf31aea08df5ebd2d2895cc40f9d8c591f6a0fae8
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-sensors.c | 2 | ||||
-rw-r--r-- | drivers/misc/nct1008.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-sensors.c b/arch/arm/mach-tegra/board-cardhu-sensors.c index 6ed5a8f0cdd7..a53311a830ee 100644 --- a/arch/arm/mach-tegra/board-cardhu-sensors.c +++ b/arch/arm/mach-tegra/board-cardhu-sensors.c @@ -524,7 +524,7 @@ static struct nct1008_platform_data cardhu_nct1008_pdata = { .hysteresis = 5, .shutdown_ext_limit = 90, .shutdown_local_limit = 90, - .throttling_ext_limit = 90, + .throttling_ext_limit = 75, .alarm_fn = tegra_throttling_enable, }; diff --git a/drivers/misc/nct1008.c b/drivers/misc/nct1008.c index 44c470ec9724..172be5c26847 100644 --- a/drivers/misc/nct1008.c +++ b/drivers/misc/nct1008.c @@ -479,7 +479,7 @@ static void nct1008_work_func(struct work_struct *work) if (temperature >= data->plat_data.throttling_ext_limit) { /* start throttling */ therm_throttle(data, true); - } else if (temperature < + } else if (temperature <= (data->plat_data.throttling_ext_limit - ALERT_HYSTERESIS)) { /* switch off throttling */ therm_throttle(data, false); |