diff mbox series

[RFC,21/86] Revert "sched/core: Use -EINVAL in sched_dynamic_mode()"

Message ID 20231107215742.363031-22-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 c4681f3f1cfcfde0c95ff72f0bdb43f9ffd7f00e.

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

Patch

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index e0bbc2b0b11e..673de11272fa 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -7009,7 +7009,7 @@  static int sched_dynamic_mode(const char *str)
 	if (!strcmp(str, "full"))
 		return preempt_dynamic_full;
 
-	return -EINVAL;
+	return -1;
 }
 
 static void sched_dynamic_update(int mode)