Function report |
Source Code:kernel\sched\fair.c |
Create Date:2022-07-28 09:38:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pick_next_task_fair
Proto:struct task_struct *pick_next_task_fair(struct rq *rq, struct task_struct *prev, struct rq_flags *rf)
Type:struct task_struct
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct rq * | rq | |
| struct task_struct * | prev | |
| struct rq_flags * | rf |
| 6654 | again : |
| 6655 | If Not sched_fair_runnable(rq) Then Go to idle |
| 6736 | If prev Then put_prev_task(rq, prev) |
| 6739 | Do |
| 6741 | set_next_entity(cfs_rq, se) |
| 6747 | done : |
| 6747 | __maybe_unused |
| 6757 | If hrtick_enabled(rq) Then CFS operations on tasks: |
| 6760 | update_misfit_status(p, rq) |
| 6762 | Return p |
| 6764 | idle : |
| 6765 | If Not rf Then Return NULL |
| 6768 | new_tasks = newidle_balance(rq, rf) |
| 6775 | If new_tasks < 0 Then Return RETRY_TASK |
| 6785 | update_idle_rq_clock_pelt(rq) |
| 6787 | Return NULL |
| Name | Describe |
|---|---|
| __pick_next_task_fair | |
| pick_next_task | Pick up the highest-prio task: |
| 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 |