diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 6f4625f8276f1..4170ec15926ee 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6660,11 +6660,11 @@ static int __init setup_preempt_mode(char *str) int mode = sched_dynamic_mode(str); if (mode < 0) { pr_warn("Dynamic Preempt: unsupported mode: %s\n", str); - return 1; + return 0; } sched_dynamic_update(mode); - return 0; + return 1; } __setup("preempt=", setup_preempt_mode);