From b71ecf1c032aec972a60ef10dbd0f0544756db07 Mon Sep 17 00:00:00 2001
From: Costa Tsaousis <costa@netdata.cloud>
Date: Sat, 8 Mar 2025 21:47:16 +0000
Subject: [PATCH] do not change the scheduling policy by default (#19808)

---
 src/daemon/daemon.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index 18bd49836f..33ff1d9b7f 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -254,6 +254,10 @@ struct sched_def {
         // the available members are important too!
         // these are all the possible scheduling policies supported by netdata
 
+    // do not change the scheduling priority
+    { "keep", 0, 0, SCHED_FLAG_KEEP_AS_IS },
+    { "none", 0, 0, SCHED_FLAG_KEEP_AS_IS },
+
 #ifdef SCHED_BATCH
         { "batch", SCHED_BATCH, 0, SCHED_FLAG_USE_NICE },
 #endif
@@ -275,10 +279,6 @@ struct sched_def {
         { "fifo", SCHED_FIFO, 0, SCHED_FLAG_PRIORITY_CONFIGURABLE },
 #endif
 
-        // do not change the scheduling priority
-        { "keep", 0, 0, SCHED_FLAG_KEEP_AS_IS },
-        { "none", 0, 0, SCHED_FLAG_KEEP_AS_IS },
-
         // array termination
         { NULL, 0, 0, 0 }
 };