sched/fair: Use protect_slice() instead of direct comparison
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 8 Jul 2025 16:56:25 +0000 (18:56 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 9 Jul 2025 11:40:22 +0000 (13:40 +0200)
commit9cdb4fe20cd239c848b5c3f5753d83a9443ba329
tree94845e83697dad9d029be2c32c3e0acf0d739661
parentcccb45d7c4295bbfeba616582d0249f2d21e6df5
sched/fair: Use protect_slice() instead of direct comparison

Replace the test by the relevant protect_slice() function.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dhaval Giani (AMD) <dhaval@gianis.ca>
Link: https://lkml.kernel.org/r/20250708165630.1948751-2-vincent.guittot@linaro.org
kernel/sched/fair.c