@@ -242,7 +242,7 @@ static void task_non_contending(struct task_struct *p)
242
242
if (p -> state == TASK_DEAD )
243
243
sub_rq_bw (p -> dl .dl_bw , & rq -> dl );
244
244
raw_spin_lock (& dl_b -> lock );
245
- __dl_clear (dl_b , p -> dl .dl_bw , dl_bw_cpus (task_cpu (p )));
245
+ __dl_sub (dl_b , p -> dl .dl_bw , dl_bw_cpus (task_cpu (p )));
246
246
__dl_clear_params (p );
247
247
raw_spin_unlock (& dl_b -> lock );
248
248
}
@@ -1209,7 +1209,7 @@ static enum hrtimer_restart inactive_task_timer(struct hrtimer *timer)
1209
1209
}
1210
1210
1211
1211
raw_spin_lock (& dl_b -> lock );
1212
- __dl_clear (dl_b , p -> dl .dl_bw , dl_bw_cpus (task_cpu (p )));
1212
+ __dl_sub (dl_b , p -> dl .dl_bw , dl_bw_cpus (task_cpu (p )));
1213
1213
raw_spin_unlock (& dl_b -> lock );
1214
1214
__dl_clear_params (p );
1215
1215
@@ -2170,7 +2170,7 @@ static void set_cpus_allowed_dl(struct task_struct *p,
2170
2170
* until we complete the update.
2171
2171
*/
2172
2172
raw_spin_lock (& src_dl_b -> lock );
2173
- __dl_clear (src_dl_b , p -> dl .dl_bw , dl_bw_cpus (task_cpu (p )));
2173
+ __dl_sub (src_dl_b , p -> dl .dl_bw , dl_bw_cpus (task_cpu (p )));
2174
2174
raw_spin_unlock (& src_dl_b -> lock );
2175
2175
}
2176
2176
@@ -2448,7 +2448,7 @@ int sched_dl_overflow(struct task_struct *p, int policy,
2448
2448
if (dl_policy (policy ) && !task_has_dl_policy (p ) &&
2449
2449
!__dl_overflow (dl_b , cpus , 0 , new_bw )) {
2450
2450
if (hrtimer_active (& p -> dl .inactive_timer ))
2451
- __dl_clear (dl_b , p -> dl .dl_bw , cpus );
2451
+ __dl_sub (dl_b , p -> dl .dl_bw , cpus );
2452
2452
__dl_add (dl_b , new_bw , cpus );
2453
2453
err = 0 ;
2454
2454
} else if (dl_policy (policy ) && task_has_dl_policy (p ) &&
@@ -2460,7 +2460,7 @@ int sched_dl_overflow(struct task_struct *p, int policy,
2460
2460
* But this would require to set the task's "inactive
2461
2461
* timer" when the task is not inactive.
2462
2462
*/
2463
- __dl_clear (dl_b , p -> dl .dl_bw , cpus );
2463
+ __dl_sub (dl_b , p -> dl .dl_bw , cpus );
2464
2464
__dl_add (dl_b , new_bw , cpus );
2465
2465
dl_change_utilization (p , new_bw );
2466
2466
err = 0 ;
0 commit comments