Re: wake_up vs. wake_up_sync

2001-06-27 Thread Hubertus Franke
PROTECTED] (w) 914-945-2003(fax) 914-945-4425 TL: 862-2003 Manfred Spraul <[EMAIL PROTECTED]>@vger.kernel.org on 06/27/2001 06:41:29 PM Sent by: [EMAIL PROTECTED] To: Mike Kravetz <[EMAIL PROTECTED]> cc: Scott Long <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subjec

Re: wake_up vs. wake_up_sync

2001-06-27 Thread Mike Kravetz
On Wed, Jun 27, 2001 at 02:57:43PM -0700, Scott Long wrote: > Does reschedule_idle() ever cause the current CPU to get scheduled? That > is, if someone calls wake_up() and wakes up a higher-priority process > could reschedule_idle() potentially immediately switch the current CPU > to that higher-p

Re: wake_up vs. wake_up_sync

2001-06-27 Thread Manfred Spraul
Mike Kravetz wrote: > > On Wed, Jun 27, 2001 at 11:22:19PM +0200, Manfred Spraul wrote: > > > Why would you want to prevent > > > reschedule_idle()? > > > > > If one process runs, wakes up another process and _knows_ that it's > > going to sleep immediately after the wake_up it doesn't need the >

Re: wake_up vs. wake_up_sync

2001-06-27 Thread Scott Long
Does reschedule_idle() ever cause the current CPU to get scheduled? That is, if someone calls wake_up() and wakes up a higher-priority process could reschedule_idle() potentially immediately switch the current CPU to that higher-priority process? Because this is NOT what I want to happen (it woul

Re: wake_up vs. wake_up_sync

2001-06-27 Thread Mike Kravetz
On Wed, Jun 27, 2001 at 11:22:19PM +0200, Manfred Spraul wrote: > > Why would you want to prevent > > reschedule_idle()? > > > If one process runs, wakes up another process and _knows_ that it's > going to sleep immediately after the wake_up it doesn't need the > reschedule_idle: the current cpu

Re: wake_up vs. wake_up_sync

2001-06-27 Thread Manfred Spraul
> I'm having trouble understanding the difference between these. > Synchronous apparently causes try_to_wake_up() to NOT call > reschedule_idle() but I'm uncertain what reschedule_idle() is doing. I > assume it just looks for an idle CPU and makes that CPU reschedule. > > What is the purpose of w

wake_up vs. wake_up_sync

2001-06-27 Thread Scott Long
I'm having trouble understanding the difference between these. Synchronous apparently causes try_to_wake_up() to NOT call reschedule_idle() but I'm uncertain what reschedule_idle() is doing. I assume it just looks for an idle CPU and makes that CPU reschedule. What is the purpose of wake_up_sync?