ARM: tegra: Add SW thermal throttling for Jetson
Sai Gurrappadi [Tue, 8 Apr 2014 21:23:14 +0000 (14:23 -0700)]
Enable cpu & gpu balanced cooling devices so that SW thermal throttling
gets enabled.

Bug 1496341

Change-Id: I28f7f9cda4aaa4fbe7d5eb6b7ebcee54a7f492a4
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/393645
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

arch/arm/mach-tegra/board-ardbeg-sensors.c

index 9544065..2c1702e 100644 (file)
@@ -1113,7 +1113,8 @@ static struct balanced_throttle gpu_throttle = {
 static int __init ardbeg_tj_throttle_init(void)
 {
        if (of_machine_is_compatible("nvidia,ardbeg") ||
-           of_machine_is_compatible("nvidia,tn8")) {
+           of_machine_is_compatible("nvidia,tn8") ||
+           of_machine_is_compatible("nvidia,jetson-tk1")) {
                balanced_throttle_register(&cpu_throttle, "cpu-balanced");
                balanced_throttle_register(&gpu_throttle, "gpu-balanced");
        }