summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2024-10-10 21:42:53 +0300
committerUladzislau Rezki (Sony) <urezki@gmail.com>2024-12-14 19:01:05 +0300
commit584975ccb7bd8088e681b0b75335295d0a2c6da1 (patch)
tree81ddb80f519cf1b9dfcda88908d98aff7c88d900 /scripts/lib
parent0203b485d26d5b403ff4ed21e4cc85ba9ec0fe67 (diff)
downloadlinux-584975ccb7bd8088e681b0b75335295d0a2c6da1.tar.xz
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>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions