Function report |
Source Code:kernel\sched\core.c |
Create Date:2022-07-28 09:35:32 |
Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:set_load_weight
Proto:static void set_load_weight(struct task_struct *p, bool update_load)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | p | |
bool | update_load |
750 | prio = static_prio - MAX_RT_PRIO |
751 | load = For load-balancing: |
756 | If task_has_idle_policy(p) Then |
758 | inv_weight = WMULT_IDLEPRIO |
759 | runnable_weight = weight |
760 | Return |
767 | If update_load && sched_class == fair_sched_class Then |
768 | reweight_task(p, prio) |
769 | Else |
770 | weight = scale_load(sched_prio_to_weight[prio]) |
771 | inv_weight = sched_prio_to_wmult[prio] |
772 | runnable_weight = weight |
Name | Describe |
---|---|
sched_fork | rk()/clone()-time setup: |
set_user_nice | |
__setscheduler_params | |
sched_init |
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 |