You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this code, smaller lat_cri can preempt larger value. Should it be the larger one preempt smaller value?
I think the more latenct crical the task is, the more chance it can run.
static int comp_preemption_info(struct preemption_info *prm_a,
struct preemption_info *prm_b)
{
/*
* Check if one's latency priority _or_ deadline is smaller or not.
*/
if ((prm_a->lat_cri < prm_b->lat_cri) ||
(prm_a->stopping_tm_est_ns < prm_b->stopping_tm_est_ns))
return -1;
if ((prm_a->lat_cri > prm_b->lat_cri) ||
(prm_a->stopping_tm_est_ns > prm_b->stopping_tm_est_ns))
return 1;
return 0;
}
The text was updated successfully, but these errors were encountered:
In this code, smaller lat_cri can preempt larger value. Should it be the larger one preempt smaller value?
I think the more latenct crical the task is, the more chance it can run.
The text was updated successfully, but these errors were encountered: