函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:kernel\torture.c Create Date:2022-07-27 15:11:46
首页 Copyright©Brick

402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
/* Shuffle tasks across CPUs, with the intent of allowing each CPU in the
 * system to become idle at a time and cut off its timer ticks. This is meant
 * to test the support for such tickless idle CPU in RCU.
 */
static int torture_shuffle(void *arg)
{
    VERBOSE_TOROUT_STRING("torture_shuffle task started");
    do {
        schedule_timeout_interruptible(shuffle_interval);
        torture_shuffle_tasks();
        torture_shutdown_absorb("torture_shuffle");
    } while (!torture_must_stop());
    torture_kthread_stopping("torture_shuffle");
    return 0;
}