diff mbox series

[RFC,22/86] Revert "sched/core: Stop using magic values in sched_dynamic_mode()"

Message ID 20231107215742.363031-23-ankur.a.arora@oracle.com (mailing list archive)
State New
Headers show
Series Make the kernel preemptible | expand

Commit Message

Ankur Arora Nov. 7, 2023, 9:57 p.m. UTC
This reverts commit 7e1b2eb74928b2478fd0630ce6c664334b480d00.

Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com>
---
 kernel/sched/core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 673de11272fa..bbd19b8ff3e9 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -7001,13 +7001,13 @@  static int preempt_dynamic_mode = preempt_dynamic_full;
 static int sched_dynamic_mode(const char *str)
 {
 	if (!strcmp(str, "none"))
-		return preempt_dynamic_none;
+		return 0;
 
 	if (!strcmp(str, "voluntary"))
-		return preempt_dynamic_voluntary;
+		return 1;
 
 	if (!strcmp(str, "full"))
-		return preempt_dynamic_full;
+		return 2;
 
 	return -1;
 }