Patchwork [meta-fsl-arm,2/2] linux-imx-rt: Use 'performance' as default cpufreq governor

login
register
mail settings
Submitter Jacob Kroon
Date Aug. 26, 2014, 8:12 a.m.
Message ID <1409040764-29974-2-git-send-email-jacob.kroon@mikrodidakt.se>
Download mbox | patch
Permalink /patch/78965/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Jacob Kroon - Aug. 26, 2014, 8:12 a.m.
Since CPU frequency scaling is a bad idea for real-time systems anyway,
use 'performance' and disable the remaining cpufreq governors.

Avoids the following issue:

  BUG: scheduling while atomic: swapper/0/0/0x00000002
  Modules linked in:
  Preemption disabled at:[<  (null)>]   (null)

  CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.10.17-rt12-monkey+g232293e #1
  [<80013c7c>] (unwind_backtrace+0x0/0xec) from [<80011644>] (show_stack+0x10/0x14)
  [<80011644>] (show_stack+0x10/0x14) from [<8004e160>] (__schedule_bug+0x60/0xa8)
  [<8004e160>] (__schedule_bug+0x60/0xa8) from [<80643458>] (__schedule+0x408/0x4a8)
  [<80643458>] (__schedule+0x408/0x4a8) from [<8064352c>] (schedule+0x34/0xa4)
  [<8064352c>] (schedule+0x34/0xa4) from [<80644104>] (rt_spin_lock_slowlock+0xc0/0x298)
  [<80644104>] (rt_spin_lock_slowlock+0xc0/0x298) from [<80033780>] (lock_timer_base.isra.29+0x2c/0x4c)
  [<80033780>] (lock_timer_base.isra.29+0x2c/0x4c) from [<80033944>] (mod_timer+0x60/0x1c4)
  [<80033944>] (mod_timer+0x60/0x1c4) from [<8044bcc8>] (cpufreq_interactive_idle_notifier+0x148/0x180)
  [<8044bcc8>] (cpufreq_interactive_idle_notifier+0x148/0x180) from [<8004ad40>] (notifier_call_chain+0x44/0x84)
  [<8004ad40>] (notifier_call_chain+0x44/0x84) from [<8004afd4>] (atomic_notifier_call_chain+0x34/0x48)
  [<8004afd4>] (atomic_notifier_call_chain+0x34/0x48) from [<8005d9a0>] (cpu_startup_entry+0xfc/0x164)
  [<8005d9a0>] (cpu_startup_entry+0xfc/0x164) from [<80c1cab4>] (start_kernel+0x324/0x330)
  [<80c1cab4>] (start_kernel+0x324/0x330) from [<10008074>] (0x10008074)

See:
  https://lkml.org/lkml/2014/6/10/457
  https://lists.yoctoproject.org/pipermail/meta-freescale/2014-June/008957.html

Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se>
---
 recipes-kernel/linux/linux-imx-rt-3.10.17/mx6/defconfig | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Patch

diff --git a/recipes-kernel/linux/linux-imx-rt-3.10.17/mx6/defconfig b/recipes-kernel/linux/linux-imx-rt-3.10.17/mx6/defconfig
index 0144b3d..1d38f4e 100644
--- a/recipes-kernel/linux/linux-imx-rt-3.10.17/mx6/defconfig
+++ b/recipes-kernel/linux/linux-imx-rt-3.10.17/mx6/defconfig
@@ -36,11 +36,7 @@  CONFIG_AEABI=y
 CONFIG_HIGHMEM=y
 CONFIG_CMDLINE="noinitrd console=ttymxc0,115200"
 CONFIG_CPU_FREQ=y
-CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE=y
-CONFIG_CPU_FREQ_GOV_POWERSAVE=y
-CONFIG_CPU_FREQ_GOV_USERSPACE=y
-CONFIG_CPU_FREQ_GOV_ONDEMAND=y
-CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
+# CONFIG_CPU_FREQ_STAT is not set
 CONFIG_ARM_IMX6_CPUFREQ=y
 CONFIG_CPU_IDLE=y
 CONFIG_VFP=y