torture: Make torture_hrtimeout_ns() take an hrtimer mode parameter
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 26 Jul 2023 20:57:03 +0000 (13:57 -0700)
committerFrederic Weisbecker <frederic@kernel.org>
Sun, 24 Sep 2023 15:24:01 +0000 (17:24 +0200)
commita741deac787f0d2d7068638c067db20af9e63752
treedcf2586b545487b69044369c79eaa903c3989041
parent40baf39fc57c61554dc744d924257940574ac76b
torture: Make torture_hrtimeout_ns() take an hrtimer mode parameter

The current torture-test sleeps are waiting for a duration, but there
are situations where it is better to wait for an absolute time, for
example, when ending a stutter interval.  This commit therefore adds
an hrtimer mode parameter to torture_hrtimeout_ns().  Why not also the
other torture_hrtimeout_*() functions?  The theory is that most absolute
times will be in nanoseconds, especially not (say) jiffies.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
include/linux/torture.h
kernel/torture.c