sched/rt: Change the type of 'sysctl_sched_rt_period' from 'unsigned int' to 'int'
authorYajun Deng <yajun.deng@linux.dev>
Sun, 8 Oct 2023 02:15:38 +0000 (10:15 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 9 Oct 2023 10:44:56 +0000 (12:44 +0200)
commit089768dfeb3ab294f9ab6a1f2462001f0f879fbb
treeef1f71ca63d7a74a1918e12b3476919de446fce0
parentf4bb5705114530cd775a5a649b666755b3efe7aa
sched/rt: Change the type of 'sysctl_sched_rt_period' from 'unsigned int' to 'int'

Doing this matches the natural type of 'int' based calculus
in sched_rt_handler(), and also enables the adding in of a
correct upper bounds check on the sysctl interface.

[ mingo: Rewrote the changelog. ]

Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20231008021538.3063250-1-yajun.deng@linux.dev
kernel/sched/rt.c
kernel/sched/sched.h