From d2006e9b7217310fedaad60f90bbaa26606ea374 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 1 Sep 2023 10:13:02 +0200 Subject: [PATCH] Use full preemptible kernel in Home Assistant OS (#2721) Enable fully preemptible kernel (low-latency desktop) configuration for Home Assistant. Home Assistant can be considered as a soft real-time system, where a lower latency is preferred over throughput. A few tests using the rt_test development add-on didn't show measurable improvements, but this could be due to rather synthetic test. Currently some platform use voluntary preemptible kernel, and some fully preemptible. So besides improving latency, this also aims to synchronize the settings across all platforms. Also make sure that debugging is not enable as it can have high runtime overhead according to Kconfig. --- buildroot-external/kernel/hassos.config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildroot-external/kernel/hassos.config b/buildroot-external/kernel/hassos.config index b8557a422..93173d5d0 100644 --- a/buildroot-external/kernel/hassos.config +++ b/buildroot-external/kernel/hassos.config @@ -2,6 +2,9 @@ CONFIG_KERNEL_LZ4=y CONFIG_CMDLINE="" CONFIG_PANIC_TIMEOUT=5 +CONFIG_PREEMPT=Y +# CONFIG_DEBUG_PREEMPT is not set + CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y