CHROMIUM: cpufreq: ondemand: io_is_busy should be 1 for ARM
authorOlof Johansson <olofj@chromium.org>
Tue, 7 Aug 2012 19:29:46 +0000 (12:29 -0700)
committerGerrit <chrome-bot@google.com>
Tue, 7 Aug 2012 21:27:59 +0000 (14:27 -0700)
Be conservative for now and only set it for V7 and newer versions.

BUG=chrome-os-partner:11403
TEST=build, boot, check boot time.

Change-Id: Ia4460efadf106c75608aac85a1f90d773af46cf2
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/29435
Reviewed-by: Sameer Nanda <snanda@chromium.org>
drivers/cpufreq/cpufreq_ondemand.c

index 836e9b0..c392ae9 100644 (file)
@@ -658,7 +658,8 @@ static inline void dbs_timer_exit(struct cpu_dbs_info_s *dbs_info)
  * efficient idling at a higher frequency/voltage is.
  * Pavel Machek says this is not so for various generations of AMD and old
  * Intel systems.
- * Mike Chan (androidlcom) calis this is also not true for ARM.
+ * ARM systems v7 and later generally good idle power management as well, so
+ * treat them the same.
  * Because of this, whitelist specific known (series) of CPUs by default, and
  * leave all others up to the user.
  */
@@ -672,6 +673,9 @@ static int should_io_be_busy(void)
            boot_cpu_data.x86 == 6 &&
            boot_cpu_data.x86_model >= 15)
                return 1;
+#endif
+#if defined(CONFIG_ARM) && defined(CPU_V7)
+       return 1;
 #endif
        return 0;
 }