diff options
author | Abel Wu <[email protected]> | 2022-09-07 19:19:59 +0800 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2022-09-07 21:53:47 +0200 |
commit | 398ba2b0cc0a43964fe3d2dd19cb2a478f1f220b (patch) | |
tree | 247303ef4f441f2b687bfffec87af5d6984701d6 /lib/string_helpers.c | |
parent | 8eeeed9c4a791f0d1f2ea830eb75a4246c117ae2 (diff) |
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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Josh Don <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions