Function report |
Source Code:kernel\sched\fair.c |
Create Date:2022-07-28 09:38:02 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__update_inv_weight
Proto:static void __update_inv_weight(struct load_weight *lw)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct load_weight * | lw |
193 | If Value is more likely to compile time(inv_weight) Then Return |
196 | w = scale_load_down(weight) |
198 | If BITS_PER_LONG > 32 && Value for the false possibility is greater at compile time(w >= WMULT_CONST) Then inv_weight = 1 |
200 | Else if Value for the false possibility is greater at compile time(!w) Then inv_weight = WMULT_CONST |
202 | Else inv_weight = WMULT_CONST / w |
Name | Describe |
---|---|
__calc_delta | delta_exec * weight / lw.weight* OR* (delta_exec * (weight * lw->inv_weight)) >> WMULT_SHIFT* Either weight := NICE_0_LOAD and lw \e sched_prio_to_wmult[], in which case* we're guaranteed shift stays positive because inv_weight is guaranteed to |
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 |