Re: [PATCH 1/2] sched/fair: Honor asymmetric SMT priority in idle selection
Kayra Cizmeci <[email protected]>
| Newsgroups | org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
> Hi Andrea, > Hope I ain't got anything wrong, I'm a bit sick. > The sched_smt_active() check on select_idle_smt_cpu seems to be redundant on here. > We could remove this > By moving the check on select_idle_smt_cpu() to goto block and > adding one check before the select_idle_smt_cpu() on select_task_rq_fair(). And just calling > select_idle_smt_cpu() on here. > I also have a question, do we need select_idle_smt() call on here? If yes then why? I was really confused while reading. > Thanks, > Kayra :_: After I don't know how much times of reading the same functions, I finally understand. Because of has_idle_core is false, we search if there are any idle SMP's on any of the cores. I normally was going to send this alot earlier, but I fall asleep after realizing this. Also now, I don't think we need to remove the checks for one place. It complicates things, when I tried. I also booted the patch, it did not worked on me since I just have a regular SMT2. So, that was the waited behavior. So, here's this: Tested-by: Kayra Cizmeci <[email protected]> Annnddddddddddddddddddddddddddddddd.... This: Reviewed-by: Kayra Cizmeci <[email protected]> Thanks, Kayra :-)