diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2021-03-25 01:45:15 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-03-25 11:39:13 +0100 |
commit | c4681f3f1cfcfde0c95ff72f0bdb43f9ffd7f00e (patch) | |
tree | 0053cdc72ed1c693a3efa1cc1dfffb1a9d4ebd74 /kernel | |
parent | sched/core: Stop using magic values in sched_dynamic_mode() (diff) | |
download | linux-c4681f3f1cfcfde0c95ff72f0bdb43f9ffd7f00e.tar.xz linux-c4681f3f1cfcfde0c95ff72f0bdb43f9ffd7f00e.zip |
sched/core: Use -EINVAL in sched_dynamic_mode()
-1 is -EPERM which is a somewhat odd error to return from
sched_dynamic_write(). No other callers care about which negative
value is used.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: https://lore.kernel.org/r/20210325004515.531631-2-linux@rasmusvillemoes.dk
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 1fe9d3f31a73..95bd6ab8115d 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5384,7 +5384,7 @@ static int sched_dynamic_mode(const char *str) if (!strcmp(str, "full")) return preempt_dynamic_full; - return -1; + return -EINVAL; } static void sched_dynamic_update(int mode) |