public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] kernel: Disable preemption debugging
@ 2025-09-25 17:56 Michael Tremer
  0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2025-09-25 17:56 UTC (permalink / raw)
  To: development; +Cc: Michael Tremer

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 | 2 +-
 config/kernel/kernel.config.x86_64-ipfire  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/kernel/kernel.config.aarch64-ipfire b/config/kernel/kernel.config.aarch64-ipfire
index 775b23d8e..820647d5f 100644
--- a/config/kernel/kernel.config.aarch64-ipfire
+++ b/config/kernel/kernel.config.aarch64-ipfire
@@ -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...)
diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel.config.x86_64-ipfire
index 2ffc8bba1..31cc169a7 100644
--- a/config/kernel/kernel.config.x86_64-ipfire
+++ b/config/kernel/kernel.config.x86_64-ipfire
@@ -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...)
-- 
2.47.3



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-09-25 17:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-25 17:56 [PATCH] kernel: Disable preemption debugging Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox