# Re: \[RFC PATCH v3 05/10\] sched/fair: Don't consider paravirt CPUs for wakeup and load balance

- From: K Prateek Nayak \<kprateek.nayak@amd.com\>
- Date: 2025-09-11 16:55:19 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2025/09/3212514
- Thread: https://ratatoskr.run/linuxppc-dev/2025/09/3210796/t.md

```text
Hello Shrikanth,

On 9/11/2025 9:26 PM, Shrikanth Hegde wrote:
>>> +check_new_cpu:
>>> +    if (is_cpu_paravirt(new_cpu))
>>> +        return cpu;
>>> +    else
>>
>> nit. redundant else.
>>
> 
> Do you mean "is_cpu_paravirt(new_cpu) ? cpu; new_cpu"

Sorry for the confusion! I meant we can have:

	if (is_cpu_paravirt(new_cpu))
		return cpu;

	return new_cpu;

Since we return from the if clause, we don't need to specify else.

-- 
Thanks and Regards,
Prateek


```
