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
Also in
lkml
Reply to
Shrikanth Hegde, 2025-09-11
Hello Shrikanth,

On 9/11/2025 9:26 PM, Shrikanth Hegde wrote:
quoted
quoted
+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

Thread (33 messages) 33 messages, 5 authors, last reply 2025-11-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help