Arm: tegra: Update MCCPU actmon parameters
Puneet Saxena [Tue, 24 Sep 2013 06:36:51 +0000 (11:36 +0530)]
With existing MCCPU parameters Emc scales up
always from emc MAX value. This is not needed as
static cpu-emc ratio boosts emc immediately.

The change sets mccpu parameters as to scale emc freq
aggressively from a lower base value.

Bug 1352917

Change-Id: I784166833d0387c734c8e13fa633d96f2e345998
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/278197
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

arch/arm/mach-tegra/tegra3_actmon.c

index a58286b..f11f94b 100644 (file)
@@ -591,15 +591,15 @@ static struct actmon_dev actmon_dev_cpu_emc = {
        .dev_id = "tegra_mon",
        .con_id = "cpu_emc",
 
-       .boost_freq_step        = 792000,
+       .boost_freq_step        = 16000,
        .boost_up_coef          = 800,
        .boost_down_coef        = 90,
-       .boost_up_threshold     = 30,
-       .boost_down_threshold   = 20,
+       .boost_up_threshold     = 27,
+       .boost_down_threshold   = 10,
        .avg_dependency_threshold       = CPU_AVG_ACT_THRESHOLD,
 
        .up_wmark_window        = 1,
-       .down_wmark_window      = 5,
+       .down_wmark_window      = 3,
        .avg_window_log2        = ACTMON_DEFAULT_AVG_WINDOW_LOG2,
 #if defined(CONFIG_ARCH_TEGRA_3x_SOC) || defined(CONFIG_ARCH_TEGRA_14x_SOC)
        .count_weight           = 0x200,