Commit 398ba2b
sched/fair: Default to false in test_idle_cores()
It's uncertain whether idle cores exist or not if shared sched-
domains are not ready, so returning "no idle cores" usually
makes sense.
While __update_idle_core() is an exception, it checks status
of this core and set hint to shared sched-domain if necessary.
So the whole logic of this function depends on the existence
of shared sched-domain, and can certainly bail out early if
it is not available.
It's somehow a little tricky, and as Josh suggested that it
should be transient while the domain isn't ready. So remove
the self-defined default value to make things more clearer.
Signed-off-by: Abel Wu <wuyun.abel@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Josh Don <joshdon@google.com>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Link: https://lore.kernel.org/r/20220907112000.1854-5-wuyun.abel@bytedance.com1 parent 8eeeed9 commit 398ba2b
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1588 | 1588 | | |
1589 | 1589 | | |
1590 | 1590 | | |
1591 | | - | |
| 1591 | + | |
1592 | 1592 | | |
1593 | 1593 | | |
1594 | 1594 | | |
1595 | | - | |
| 1595 | + | |
1596 | 1596 | | |
1597 | 1597 | | |
1598 | 1598 | | |
| |||
6271 | 6271 | | |
6272 | 6272 | | |
6273 | 6273 | | |
6274 | | - | |
| 6274 | + | |
6275 | 6275 | | |
6276 | 6276 | | |
6277 | 6277 | | |
6278 | 6278 | | |
6279 | 6279 | | |
6280 | 6280 | | |
6281 | 6281 | | |
6282 | | - | |
| 6282 | + | |
6283 | 6283 | | |
6284 | 6284 | | |
6285 | 6285 | | |
| |||
6295 | 6295 | | |
6296 | 6296 | | |
6297 | 6297 | | |
6298 | | - | |
| 6298 | + | |
6299 | 6299 | | |
6300 | 6300 | | |
6301 | 6301 | | |
| |||
6367 | 6367 | | |
6368 | 6368 | | |
6369 | 6369 | | |
6370 | | - | |
| 6370 | + | |
6371 | 6371 | | |
6372 | | - | |
| 6372 | + | |
6373 | 6373 | | |
6374 | 6374 | | |
6375 | 6375 | | |
| |||
6608 | 6608 | | |
6609 | 6609 | | |
6610 | 6610 | | |
6611 | | - | |
| 6611 | + | |
6612 | 6612 | | |
6613 | 6613 | | |
6614 | 6614 | | |
| |||
0 commit comments