]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
kernel: Disable preemption debugging
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 Sep 2025 17:56:33 +0000 (17:56 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 15 Oct 2025 05:49:13 +0000 (07:49 +0200)
From the kernel configuration:

  If you say Y here then the kernel will use a debug variant of the
  commonly used smp_processor_id() function and will print warnings
  if kernel code uses it in a preemption-unsafe way. Also, the kernel
  will detect preemption count underflows.

  This option has potential to introduce high runtime overhead,
  depending on workload as it triggers debugging routines for each
  this_cpu operation. It should only be used for debugging purposes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/kernel/kernel.config.aarch64-ipfire
config/kernel/kernel.config.x86_64-ipfire

index 775b23d8e1c6d6ecfac654bab1a17b85ae3c3988..820647d5fc8c529269d93531e2f30990c5858411 100644 (file)
@@ -9096,7 +9096,7 @@ CONFIG_SCHED_INFO=y
 CONFIG_SCHEDSTATS=y
 # end of Scheduler Debugging
 
-CONFIG_DEBUG_PREEMPT=y
+# CONFIG_DEBUG_PREEMPT is not set
 
 #
 # Lock Debugging (spinlocks, mutexes, etc...)
index 2ffc8bba13fea39961532a56699f3dc5c2738e7e..31cc169a7d24d534615358bb1755012405e3ad93 100644 (file)
@@ -8173,7 +8173,7 @@ CONFIG_SCHED_INFO=y
 CONFIG_SCHEDSTATS=y
 # end of Scheduler Debugging
 
-CONFIG_DEBUG_PREEMPT=y
+# CONFIG_DEBUG_PREEMPT is not set
 
 #
 # Lock Debugging (spinlocks, mutexes, etc...)