]> git.baikalelectronics.ru Git - kernel.git/commit
preempt/dynamic: Fix setup_preempt_mode() return value
authorAndrew Halaney <ahalaney@redhat.com>
Fri, 3 Dec 2021 23:32:03 +0000 (17:32 -0600)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 4 Dec 2021 09:56:18 +0000 (10:56 +0100)
commitc5a57dca5b8d83de71723d021d5a1871634c2633
tree152a88cf230c5fa47d2a77a65bfe02ec9a84b3e2
parent27e1b9ce3ba872ef7199039485f38b395ab21e9f
preempt/dynamic: Fix setup_preempt_mode() return value

__setup() callbacks expect 1 for success and 0 for failure. Correct the
usage here to reflect that.

Fixes: 8eb0bd8701cd ("preempt/dynamic: Support dynamic preempt with preempt= boot option")
Reported-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20211203233203.133581-1-ahalaney@redhat.com
kernel/sched/core.c