K 10 svn:author V 6 mhorne K 8 svn:date V 27 2022-10-24T15:58:31.022805Z K 7 svn:log V 481 ksched: correct return code for invalid priority By convention, EINVAL is returned when validating arguments, not EPERM. This matches the documented behaviour of sched_setscheduler(3), and that of SCHED_OTHER. PR: 227735 MFC after: 1 week Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D37021 (cherry picked from commit ba4782022ac840bd20f4e10cb95ca27d2742333a) Git Hash: a55b3c12a88476e5cfb65ac3c88aebc17015a82f Git Author: ali.abdallah@suse.com END