gpu: arm: midgard: r12p0_04rel0: change temperature var type to int in model_static_p...
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 16 Mar 2016 16:36:13 +0000 (17:36 +0100)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 7 Jul 2016 06:39:31 +0000 (15:39 +0900)
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
[jy0922.shim: apply to midgard r12p0_04rel0]
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_power_model_simple.c

index cd4f0a2bb24f44885150302e76ad506dc2cdd044..ebe65c414f0c529febfcbc97afda58e48184a0b3 100644 (file)
@@ -36,7 +36,7 @@ static struct thermal_zone_device *gpu_tz;
 
 static unsigned long model_static_power(unsigned long voltage)
 {
-       unsigned long temperature, temp;
+       unsigned int temperature, temp;
        unsigned long temp_squared, temp_cubed, temp_scaling_factor;
        const unsigned long voltage_cubed = (voltage * voltage * voltage) >> 10;