]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rcutorture: Add random real-time preemption
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 10 Oct 2024 18:42:53 +0000 (11:42 -0700)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Sat, 14 Dec 2024 16:01:05 +0000 (17:01 +0100)
commit584975ccb7bd8088e681b0b75335295d0a2c6da1
tree81ddb80f519cf1b9dfcda88908d98aff7c88d900
parent0203b485d26d5b403ff4ed21e4cc85ba9ec0fe67
rcutorture: Add random real-time preemption

This commit adds the rcutorture.preempt_duration kernel module parameter,
which gives the real-time preemption duration in milliseconds (zero to
disable, which is the default) and also the rcutorture.preempt_interval
module parameter, which gives the interval between successive preemptions,
also in milliseconds, defaulting to one second.  The CPU to preempt is
chosen at random from those online at that time.  Races between preempting
a given CPU and that CPU going offline are ignored, and preemption is
forgone when this occurs.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Documentation/admin-guide/kernel-parameters.txt
kernel/rcu/rcutorture.c