Merge pull request #791 from multics69/lavd-sched-sample

scx_lavd: misc updates
This commit is contained in:
Changwoo Min 2024-10-13 08:52:08 +00:00 committed by GitHub
commit ba9d75a6ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;
}