ARM: tegra: thermal: Utilize hysteresis on nct
Joshua Primero [Fri, 5 Oct 2012 00:25:51 +0000 (17:25 -0700)]
Added 1 degree hysteresis to edp thermal management trip points.

bug 1057977

Change-Id: I8a278cc3e4288ccc5f7cb7896382cb98e3c9b2a3
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/141776
(cherry picked from commit b0d89dd8c9488edf6c0e513606dc8cc3b24ac35d)
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/146687
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/board-cardhu-sensors.c
arch/arm/mach-tegra/board-dalmore-sensors.c
arch/arm/mach-tegra/board-enterprise-sensors.c
arch/arm/mach-tegra/board-kai-sensors.c
arch/arm/mach-tegra/board-pluto-sensors.c

index ac6930e..80c087b 100644 (file)
@@ -828,6 +828,7 @@ static int cardhu_nct1008_init(void)
                        cardhu_nct1008_pdata.active[i].cdev_data = (void *)i;
                        cardhu_nct1008_pdata.active[i].trip_temp =
                                cpu_edp_limits[i].temperature * 1000;
+                       cardhu_nct1008_pdata.active[i].hysteresis = 1000;
                }
                cardhu_nct1008_pdata.active[i].create_cdev = NULL;
 #endif
index 8c01139..06bd50f 100644 (file)
@@ -416,6 +416,7 @@ static int dalmore_nct1008_init(void)
                        dalmore_nct1008_pdata.active[i].cdev_data = (void *)i;
                        dalmore_nct1008_pdata.active[i].trip_temp =
                                cpu_edp_limits[i].temperature * 1000;
+                       dalmore_nct1008_pdata.active[i].hysteresis = 1000;
                }
                dalmore_nct1008_pdata.active[i].create_cdev = NULL;
 #endif
index 869d798..ce5f052 100644 (file)
@@ -121,6 +121,7 @@ static void enterprise_init_edp_cdev(void)
                enterprise_nct1008_pdata.active[i].cdev_data = (void *)i;
                enterprise_nct1008_pdata.active[i].trip_temp =
                        cpu_edp_limits[i].temperature * 1000;
+               enterprise_nct1008_pdata.active[i].hysteresis = 1000;
        }
        enterprise_nct1008_pdata.active[i].create_cdev = NULL;
 }
index e6ca646..b437ad5 100644 (file)
@@ -105,6 +105,7 @@ static void kai_init_edp_cdev(void)
                kai_nct1008_pdata.active[i].cdev_data = (void *)i;
                kai_nct1008_pdata.active[i].trip_temp =
                        cpu_edp_limits[i].temperature * 1000;
+               kai_nct1008_pdata.active[i].hysteresis = 1000;
        }
        kai_nct1008_pdata.active[i].create_cdev = NULL;
 }
index e7a24ab..74d0087 100644 (file)
@@ -382,6 +382,7 @@ static int pluto_nct1008_init(void)
                        pluto_nct1008_pdata.active[i].cdev_data = (void *)i;
                        pluto_nct1008_pdata.active[i].trip_temp =
                                cpu_edp_limits[i].temperature * 1000;
+                       pluto_nct1008_pdata.active[i].hysteresis = 1000;
                }
                pluto_nct1008_pdata.active[i].create_cdev = NULL;
 #endif