Re: [RFC] sched: Distinguish between idle_cpu calls based on desired effect

From: Rohit Jain
Date: Tue May 08 2018 - 13:03:24 EST


Hi Randy,


On 05/07/2018 05:15 PM, Randy Dunlap wrote:
On 05/07/2018 04:41 PM, Rohit Jain wrote:

<snip>

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 71bdb86..171e160 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4028,6 +4028,20 @@ int idle_cpu(int cpu)
return 0;
#endif
+ return 1;
+}
+
+/**
+ * idle_cpu - is a given CPU idle for enqueuing work.
* available_idle_cpu -

Thanks for the catch!

Will fix it in the next version.

Thanks,
Rohit

<snip>