Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\torture.c Create Date:2022-07-28 13:49:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Shuffle tasks such that we allow shuffle_idle_cpu to become idle.* A special case is when shuffle_idle_cpu = -1, in which case we allow* the tasks to run on all CPUs.

Proto:static void torture_shuffle_tasks(void)

Type:void

Parameter:Nothing

379  pumask_setall - set all cpus (< nr_cpu_ids) in a cpumask*@dstp: the cpumask pointer
380  get_online_cpus()
383  If num_online_cpus() == 1 Then
384  put_online_cpus()
385  Return
389  Force all torture tasks off this CPU = pumask_next - get the next cpu in a cpumask*@n: the cpu prior to the place to search (ie. return will be > @n)*@srcp: the cpumask pointer* Returns >= nr_cpu_ids if no further cpus set.
390  If Force all torture tasks off this CPU >= Setup number of possible processor ids Then Force all torture tasks off this CPU = -1
392  Else pumask_clear_cpu - clear a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
395  mutex_lock( & shuffle_task_mutex)
396  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(stp, & shuffle_task_list, st_l)
397  set_cpus_allowed_ptr(st_t, shuffle_tmp_mask)
398  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
400  put_online_cpus()
Caller
NameDescribe
torture_shuffleShuffle 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.