ARM: tegra: thermal: Enable pid_thermal_gov as default for Tj throttling
Jinyoung Park [Thu, 31 Jan 2013 15:04:04 +0000 (00:04 +0900)]
Enable pid_thermal_gov as default thermal governor for Tj throttling.

Bug 1200111

Change-Id: I1e35039cce4fd98acd8565c24da3b156404e57af
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/196029
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

arch/arm/mach-tegra/board-dalmore-power.c
arch/arm/mach-tegra/board-pluto-power.c
arch/arm/mach-tegra/board-roth-power.c
arch/arm/mach-tegra/board-roth-sensors.c

index c29913f..250bbd5 100644 (file)
@@ -1177,6 +1177,10 @@ int __init dalmore_edp_init(void)
        return 0;
 }
 
+static struct thermal_zone_params dalmore_soctherm_therm_cpu_tzp = {
+       .governor_name = "pid_thermal_gov",
+};
+
 static struct soctherm_platform_data dalmore_soctherm_data = {
        .therm = {
                [THERM_CPU] = {
@@ -1206,6 +1210,7 @@ static struct soctherm_platform_data dalmore_soctherm_data = {
                                        .lower = THERMAL_NO_LIMIT,
                                },
                        },
+                       .tzp = &dalmore_soctherm_therm_cpu_tzp,
                },
                [THERM_GPU] = {
                        .zone_enable = true,
index 872251f..ead1bab 100644 (file)
@@ -719,6 +719,10 @@ int __init pluto_edp_init(void)
        return 0;
 }
 
+static struct thermal_zone_params pluto_soctherm_therm_cpu_tzp = {
+       .governor_name = "pid_thermal_gov",
+};
+
 static struct soctherm_platform_data pluto_soctherm_data = {
        .therm = {
                [THERM_CPU] = {
@@ -748,6 +752,7 @@ static struct soctherm_platform_data pluto_soctherm_data = {
                                        .lower = THERMAL_NO_LIMIT,
                                },
                        },
+                       .tzp = &pluto_soctherm_therm_cpu_tzp,
                },
                [THERM_GPU] = {
                        .zone_enable = true,
index a8beeb5..311aaa5 100644 (file)
@@ -759,6 +759,10 @@ int __init roth_edp_init(void)
        return 0;
 }
 
+static struct thermal_zone_params roth_soctherm_therm_cpu_tzp = {
+       .governor_name = "pid_thermal_gov",
+};
+
 static struct soctherm_platform_data roth_soctherm_data = {
        .therm = {
                [THERM_CPU] = {
@@ -788,6 +792,7 @@ static struct soctherm_platform_data roth_soctherm_data = {
                                        .lower = THERMAL_NO_LIMIT,
                                },
                        },
+                       .tzp = &roth_soctherm_therm_cpu_tzp,
                },
                [THERM_GPU] = {
                        .zone_enable = true,
index b04359d..65ee95e 100644 (file)
@@ -98,6 +98,10 @@ static int __init roth_throttle_init(void)
 }
 module_init(roth_throttle_init);
 
+static struct thermal_zone_params roth_nct1008_tzp = {
+       .governor_name = "pid_thermal_gov",
+};
+
 static struct nct1008_platform_data roth_nct1008_pdata = {
        .supported_hwrev = true,
        .ext_range = true,
@@ -129,6 +133,7 @@ static struct nct1008_platform_data roth_nct1008_pdata = {
                        .hysteresis = 6000,
                },
        },
+       .tzp = &roth_nct1008_tzp,
 };
 
 static struct nct1008_platform_data roth_nct1008_left_pdata = {