Function report |
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 activity | Download SCCT | Chinese |
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
| 380 | get_online_cpus() |
| 383 | If num_online_cpus() == 1 Then |
| 384 | put_online_cpus() |
| 385 | Return |
| 390 | If Force all torture tasks off this CPU >= Setup number of possible processor ids Then Force all torture tasks off this CPU = -1 |
| 395 | mutex_lock( & shuffle_task_mutex) |
| 400 | put_online_cpus() |
| Name | Describe |
|---|---|
| torture_shuffle | 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. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |