mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-26 03:20:24 +00:00
Merge pull request #791 from multics69/lavd-sched-sample
scx_lavd: misc updates
This commit is contained in:
commit
ba9d75a6ab
@ -105,8 +105,8 @@ struct cpu_ctx {
|
||||
* Information used to keep track of latency criticality
|
||||
*/
|
||||
volatile u32 max_lat_cri; /* maximum latency criticality */
|
||||
volatile u32 sum_lat_cri; /* sum of latency criticality */
|
||||
volatile u32 nr_sched; /* number of schedules */
|
||||
volatile u64 sum_lat_cri; /* sum of latency criticality */
|
||||
|
||||
/*
|
||||
* Information used to keep track of performance criticality
|
||||
|
@ -352,7 +352,7 @@ static void calc_virtual_deadline_delta(struct task_struct *p,
|
||||
*/
|
||||
lat_cri = calc_lat_cri(p, taskc, cpuc_cur, enq_flags);
|
||||
greedy_ratio = calc_greedy_ratio(taskc);
|
||||
deadline = (LAVD_SLICE_MAX_NS * greedy_ratio) / (1000 * lat_cri);
|
||||
deadline = (LAVD_SLICE_MAX_NS * greedy_ratio) / lat_cri;
|
||||
taskc->vdeadline_delta_ns = deadline;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user