Re: [PATCH 6/7 v4] sched/fair: trigger the update of blocked load on newly idle cpu

2021-03-05 Thread Qais Yousef
On 02/24/21 14:30, Vincent Guittot wrote: > +/* > + * Check if we need to run the ILB for updating blocked load before entering > + * idle state. > + */ > +void nohz_run_idle_balance(int cpu) > +{ > + unsigned int flags; > + > + flags = atomic_fetch_andnot(NOHZ_NEWILB_KICK, nohz_flags(cpu))

[PATCH 6/7 v4] sched/fair: trigger the update of blocked load on newly idle cpu

2021-02-24 Thread Vincent Guittot
Instead of waking up a random and already idle CPU, we can take advantage of this_cpu being about to enter idle to run the ILB and update the blocked load. Signed-off-by: Vincent Guittot --- kernel/sched/core.c | 2 +- kernel/sched/fair.c | 24 +--- kernel/sched/idle.c |