lkml.org 
[lkml]   [2011]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch v2 1/2] sched: Use resched IPI to kick off the nohz idle balance
From
Date
On Mon, 2011-10-03 at 15:09 -0700, Suresh Siddha wrote:
> + smp_mb();
> + /*
> + * Use smp_send_reschedule() instead of resched_cpu().
> + * This way we generate a sched IPI on the target cpu which
> + * is idle. And the softirq performing nohz idle load balance
> + * will be run before returning from the IPI.
> + */
> + smp_send_reschedule(ilb_cpu);

Now the only thing missing is where the matching barrier is, does
receiving an interrupt imply a mb? If so that wants mentioning
somewhere, otherwise people will wonder how we can ever read the right
value.




\
 
 \ /
  Last update: 2011-10-04 11:09    [W:0.073 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site