mirror of
https://github.com/gatieme/LDD-LinuxDeviceDrivers.git
synced 2026-09-26 15:33:35 +08:00
CFS调度器之虚拟时钟...
This commit is contained in:
@@ -121,7 +121,8 @@ static inline u64 calc_delta_fair(u64 delta, struct sched_entity *se)
|
||||
|
||||
忽略舍入和溢出检查, calc_delta_fair函数所做的就是根据下列公式计算:
|
||||
|
||||
$\dfrac{a}{b}$
|
||||
$$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$
|
||||
\\(x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\\)
|
||||
|
||||
|
||||
$$ delta =delta \times \dfrac{NICE\_0\_LOAD}{curr->se->load.weight}$$
|
||||
|
||||
Reference in New Issue
Block a user