mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 06:10:56 +00:00
torture: Move torture_shuffle() timeouts to hrtimers
In order to gain better race coverage, move the CPU-migration timed waits in torture_shuffle() to torture_hrtimeout_jiffies(). Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
3f0c06e1cb
commit
dea81dcfd3
1 changed files with 3 additions and 1 deletions
|
@ -557,9 +557,11 @@ static void torture_shuffle_tasks(void)
|
||||||
*/
|
*/
|
||||||
static int torture_shuffle(void *arg)
|
static int torture_shuffle(void *arg)
|
||||||
{
|
{
|
||||||
|
DEFINE_TORTURE_RANDOM(rand);
|
||||||
|
|
||||||
VERBOSE_TOROUT_STRING("torture_shuffle task started");
|
VERBOSE_TOROUT_STRING("torture_shuffle task started");
|
||||||
do {
|
do {
|
||||||
schedule_timeout_interruptible(shuffle_interval);
|
torture_hrtimeout_jiffies(shuffle_interval, &rand);
|
||||||
torture_shuffle_tasks();
|
torture_shuffle_tasks();
|
||||||
torture_shutdown_absorb("torture_shuffle");
|
torture_shutdown_absorb("torture_shuffle");
|
||||||
} while (!torture_must_stop());
|
} while (!torture_must_stop());
|
||||||
|
|
Loading…
Reference in a new issue