Skip to contentSkip to conversation

detect problematic kernel configs

PATCH In review Jan Kiszka 2 participants 3 messages Apr 13, 2006 – Apr 15, 2006

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 detect problematic kernel configs

Hi,

this patch tries to reduce the traps newbies may tap by leaving (for us) well-known problematic kernel switches on. And are there any futher I forgot, e.g. on other archs?

Jan

arch/i386/Kconfig +16 -0
Index: ksrc/arch/i386/Kconfig
===================================================================
@@ -194,3 +194,19 @@ depends on XENO_OPT_NUCLEUS
 source "drivers/xenomai/Kconfig"
 
 endmenu
+
+if XENOMAI = y
+
+comment "WARNING: Potential latency killers detected!"
+        depends on PM || ACPI || CPU_FREQ
+
+comment "Power Management (PM)"
+        depends on PM
+
+comment "ACPI"
+        depends on ACPI
+
+comment "CPU frequency scaling (CPU_FREQ)"
+        depends on CPU_FREQ
+
+endif
#1 lore raw
Quoted 16 lines · Jan Kiszka

Hi,

this patch tries to reduce the traps newbies may tap by leaving (for us) well-known problematic kernel switches on. And are there any futher I forgot, e.g. on other archs?

Jan
Index: ksrc/arch/i386/Kconfig
===================================================================

arch/i386/Kconfig +1 -0
@@ -194,3 +194,19 @@ depends on XENO_OPT_NUCLEUS
 source "drivers/xenomai/Kconfig"
 
 endmenu
+

arch/i386/Kconfig depends on XENO_OPT_NUCLEUS · line 207

Quoted 10 lines
arch/i386/Kconfig +10 -0
+if XENOMAI = y
+
+comment "WARNING: Potential latency killers detected!"
+        depends on PM || ACPI || CPU_FREQ
+
+comment "Power Management (PM)"
+        depends on PM
+
+comment "ACPI"
+        depends on ACPI

Only ACPI_PROCESSOR is a latency killer.

Signature · 1 line
					    Gilles Chanteperdrix.
author
#2 lore raw
Quoted 15 lines · Gilles Chanteperdrix
Quoted 14 lines · Jan Kiszka

Hi,

this patch tries to reduce the traps newbies may tap by leaving (for us) well-known problematic kernel switches on. And are there any futher I forgot, e.g. on other archs?

Jan
Index: ksrc/arch/i386/Kconfig
===================================================================

arch/i386/Kconfig +0 -0
@@ -194,3 +194,19 @@ depends on XENO_OPT_NUCLEUS
 source "drivers/xenomai/Kconfig"
 
Quoted 15 lines

arch/i386/Kconfig depends on XENO_OPT_NUCLEUS · line 207

Quoted 12 lines
arch/i386/Kconfig +11 -0
 endmenu
+
+if XENOMAI = y
+
+comment "WARNING: Potential latency killers detected!"
+        depends on PM || ACPI || CPU_FREQ
+
+comment "Power Management (PM)"
+        depends on PM
+
+comment "ACPI"
+        depends on ACPI

Only ACPI_PROCESSOR is a latency killer.

Good point. Are there also some more fine-grained switches under CONFIG_PM? Never tried this in details, always picked the safe way.

Jan