Commit c4681f3f authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Ingo Molnar
Browse files

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: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Link: https://lore.kernel.org/r/20210325004515.531631-2-linux@rasmusvillemoes.dk
parent 7e1b2eb7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)