summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMing Liu <ming.liu@toradex.com>2020-11-10 20:14:11 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2020-11-23 20:00:14 +0100
commit7127fa896a7aabf6415231422305f247bac13285 (patch)
tree47e67b47054ab67986c4666909cf1452959e2aa5
parent806b098d9f79c1158f501dfd8838109ca794a805 (diff)
linux-toradex-mainline: disable configs that lead to latency
Explicitly disable kernel configs that could lead to latency on preempt-rt kernel. Also explicitly enable CONFIG_EXPERT which is being depended by CONFIG_PREEMPT_RT. Related-to: TOR-1354 Signed-off-by: Ming Liu <ming.liu@toradex.com> (cherry picked from commit 2fb9cca9965e345915488b5693d63c0e137ae3ce)
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline-5.4/preempt-rt-less-latency.cfg14
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline-5.4/preempt-rt-less-latency.scc4
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline-5.4/preempt-rt.cfg1
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline_5.4.bb1
4 files changed, 20 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-toradex-mainline-5.4/preempt-rt-less-latency.cfg b/recipes-kernel/linux/linux-toradex-mainline-5.4/preempt-rt-less-latency.cfg
new file mode 100644
index 0000000..a9c88bd
--- /dev/null
+++ b/recipes-kernel/linux/linux-toradex-mainline-5.4/preempt-rt-less-latency.cfg
@@ -0,0 +1,14 @@
+# CONFIG_PM_DEBUG is not set
+# CONFIG_6LOWPAN_DEBUGFS is not set
+# CONFIG_BT_DEBUGFS is not set
+# CONFIG_ATH9K_DEBUGFS is not set
+# CONFIG_ATH9K_HTC_DEBUGFS is not set
+# CONFIG_ATH10K_DEBUGFS is not set
+# CONFIG_RTLWIFI_DEBUG is not set
+# CONFIG_IEEE802154_AT86RF230_DEBUGFS is not set
+# CONFIG_DYNAMIC_DEBUG is not set
+# CONFIG_DETECT_HUNG_TASK is not set
+# CONFIG_SCHEDSTATS is not set
+# CONFIG_SCHED_DEBUG is not set
+# CONFIG_BLK_DEV_IO_TRACE is not set
+# CONFIG_CORESIGHT is not set
diff --git a/recipes-kernel/linux/linux-toradex-mainline-5.4/preempt-rt-less-latency.scc b/recipes-kernel/linux/linux-toradex-mainline-5.4/preempt-rt-less-latency.scc
new file mode 100644
index 0000000..edd1519
--- /dev/null
+++ b/recipes-kernel/linux/linux-toradex-mainline-5.4/preempt-rt-less-latency.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Disable configs that could lead to preempt-rt latency"
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware preempt-rt-less-latency.cfg
diff --git a/recipes-kernel/linux/linux-toradex-mainline-5.4/preempt-rt.cfg b/recipes-kernel/linux/linux-toradex-mainline-5.4/preempt-rt.cfg
index 93e05af..f76e447 100644
--- a/recipes-kernel/linux/linux-toradex-mainline-5.4/preempt-rt.cfg
+++ b/recipes-kernel/linux/linux-toradex-mainline-5.4/preempt-rt.cfg
@@ -1,3 +1,4 @@
+CONFIG_EXPERT=y
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
diff --git a/recipes-kernel/linux/linux-toradex-mainline_5.4.bb b/recipes-kernel/linux/linux-toradex-mainline_5.4.bb
index b3643bb..594819f 100644
--- a/recipes-kernel/linux/linux-toradex-mainline_5.4.bb
+++ b/recipes-kernel/linux/linux-toradex-mainline_5.4.bb
@@ -15,6 +15,7 @@ require recipes-kernel/linux/linux-toradex-mainline.inc
SRC_URI_append_preempt-rt = " \
${KERNELORG_MIRROR}/linux/kernel/projects/rt/5.4/older/patch-5.4.61-rt37.patch.xz;name=rt-patch \
file://preempt-rt.scc \
+ file://preempt-rt-less-latency.scc \
"
SRC_URI[rt-patch.md5sum] = "5a72e4f56ffdd79c8c668197f989f8d1"
SRC_URI[rt-patch.sha256sum] = "b2b52be0ef8b56a44a898ffc6a54515508e3cc9b2faece7a7d9f5d617a29ede1"