Commit 772b653
sched/deadline: Merge dl_task_can_attach() and dl_cpu_busy()
Both functions are doing almost the same, that is checking if admission
control is still respected.
With exclusive cpusets, dl_task_can_attach() checks if the destination
cpuset (i.e. its root domain) has enough CPU capacity to accommodate the
task.
dl_cpu_busy() checks if there is enough CPU capacity in the cpuset in
case the CPU is hot-plugged out.
dl_task_can_attach() is used to check if a task can be admitted while
dl_cpu_busy() is used to check if a CPU can be hotplugged out.
Make dl_cpu_busy() able to deal with a task and use it instead of
dl_task_can_attach() in task_can_attach().
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://lore.kernel.org/r/20220302183433.333029-4-dietmar.eggemann@arm.com1 parent f1304ec commit 772b653
3 files changed
Lines changed: 24 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8805 | 8805 | | |
8806 | 8806 | | |
8807 | 8807 | | |
8808 | | - | |
8809 | | - | |
| 8808 | + | |
| 8809 | + | |
| 8810 | + | |
| 8811 | + | |
| 8812 | + | |
8810 | 8813 | | |
8811 | 8814 | | |
8812 | 8815 | | |
| |||
9090 | 9093 | | |
9091 | 9094 | | |
9092 | 9095 | | |
9093 | | - | |
9094 | | - | |
| 9096 | + | |
| 9097 | + | |
| 9098 | + | |
| 9099 | + | |
9095 | 9100 | | |
9096 | 9101 | | |
9097 | 9102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2992 | 2992 | | |
2993 | 2993 | | |
2994 | 2994 | | |
2995 | | - | |
2996 | | - | |
2997 | | - | |
2998 | | - | |
2999 | | - | |
3000 | | - | |
3001 | | - | |
3002 | | - | |
3003 | | - | |
3004 | | - | |
3005 | | - | |
3006 | | - | |
3007 | | - | |
3008 | | - | |
3009 | | - | |
3010 | | - | |
3011 | | - | |
3012 | | - | |
3013 | | - | |
3014 | | - | |
3015 | | - | |
3016 | | - | |
3017 | | - | |
3018 | | - | |
3019 | | - | |
3020 | | - | |
3021 | | - | |
3022 | | - | |
3023 | | - | |
3024 | | - | |
3025 | | - | |
3026 | | - | |
3027 | | - | |
3028 | | - | |
3029 | | - | |
3030 | 2995 | | |
3031 | 2996 | | |
3032 | 2997 | | |
| |||
3048 | 3013 | | |
3049 | 3014 | | |
3050 | 3015 | | |
3051 | | - | |
| 3016 | + | |
3052 | 3017 | | |
3053 | 3018 | | |
3054 | 3019 | | |
| |||
3058 | 3023 | | |
3059 | 3024 | | |
3060 | 3025 | | |
3061 | | - | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
| 3029 | + | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
3062 | 3038 | | |
3063 | 3039 | | |
3064 | 3040 | | |
3065 | | - | |
| 3041 | + | |
3066 | 3042 | | |
3067 | 3043 | | |
3068 | 3044 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
328 | 327 | | |
329 | | - | |
| 328 | + | |
330 | 329 | | |
331 | 330 | | |
332 | 331 | | |
| |||
0 commit comments