ARM: tegra: power: Fix EDP calculator
Alex Frid [Sat, 26 Oct 2013 04:26:46 +0000 (21:26 -0700)]
Removed hard-coded iddq settings in order to use per-chip iddq value
for EDP calculations.

Change-Id: Ia58d307007c969159037a037c7b81eb93cda93c5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/304489
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

arch/arm/mach-tegra/edp.c

index 9446226..503ec19 100644 (file)
@@ -319,7 +319,6 @@ static int init_cpu_edp_limits_calculated(void)
 
        /* Determine all inputs to EDP formula */
        iddq_mA = tegra_get_cpu_iddq_value();
-       iddq_mA = 1281; /* hard code for testing */
        ret = edp_find_speedo_idx(cpu_speedo_id, &cpu_speedo_idx);
        if (ret)
                return ret;